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配置指南