Python Discord bot for using OpenAI's language model GPT-4
- A discord application and bot user
- An OpenAI account with a set up payment plan
- Access to the gpt-4 model
- openai
- discord
-
YOUR_DISCORD_SERVER_ID_HERE
-
YOUR_DISCORD_BOT_API_KEY_HERE
-
YOUR_OPENAI_ORGANIZATION_ID_HERE
-
YOUR_OPENAI_API_KEY_HERE
-
You can now set your history length, I recommend no more than 100. You can also change the bot's identity and behavior by changing the system_message.
Now you can invite your bot to your server. It needs message and editing permissions. Then run main.py.
- Allow the bot to use any channels you want it to use. It can naturally talk and remember. You do not need to use a command.