DiscordGPTChatBot
1.0.0
カスタムロールでOpenai GPT APIを使用するPythonベースのDiscord Chat Bot
OpenAI GPT3.5モデルにより、カスタムトレーニングとシステムロールメッセージを使用してITの動作を変更できます。このリポジトリにより、ボットの回答の動作を変更できるカスタムロールを備えたGPT 3.5モデルを使用してDiscord Botを作成できます。
セットアップガイドで入手できます
Python 3.9をデバイスにインストールします。
リポジトリをクローンします:
git clone https://github.com/02loveslollipop/DiscordGPTChatBot.gitffmpegをデバイスにインストールすると、ffmpegはこちらにインストールできます
example_config.ymlのコピーを作成し、 config.ymlとして名前を変更し、それを開いてdiscord and 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 configurationガイド