DiscordGPTChatBot
1.0.0
一個基於Python的Discord Chat Bot,該聊天機器人使用OpenAi GPT API具有自定義角色
OpenAI GPT3.5模型允許使用自定義培訓和使用系統角色消息更改IT行為,該存儲庫允許使用具有自定義角色的GPT 3.5模型創建一個Discord Bot,從而可以更改機器人答案的行為。
設置指南可用完整的設置指南
在您的設備中安裝Python 3.9。
克隆存儲庫:
git clone https://github.com/02loveslollipop/DiscordGPTChatBot.git在您的設備上安裝FFMPEG,可以在此處安裝FFMPEG
創建example_config.yml的副本,然後將其重命名為config.yml ,然後打開並粘貼您的Discord和OpenAi鍵,然後更改聊天機器人的角色(config.yml的完整說明):
bot :
token : " YOUR_DISCORD_KEY " # Paste here the token you got from Discord Developer Portal
open_ai :
token : " YOUR_OPEN_AI_KEY " # Paste here the OpenAI secret key you got from OpenAI platform
role : " You are a helpful assistant. " # Change here chatbot's role, this will change it's behavior answering questionspip -r /path/to/your/repo/requirements.txtpython main.py此處的完整命令列表
config.yml配置指南