Update basicBot.py

The name of the role from settings did not match from that from the basicBot.py
This commit is contained in:
mcurti
2023-04-17 09:24:58 +02:00
committed by GitHub
parent 084b040ddd
commit ffcdef9732

View File

@ -82,7 +82,7 @@ def generate_gpt_response(user_id, username, message, max_conversation_length=ma
conversation_history[user_id]["messages"].append({"role": "user", "content": message})
system_prompt = chatbot_character
system_prompt = system_prompt
messages = [{"role": "system", "content": system_prompt}]