added instructions to keep responses shorter in prompt.

This commit is contained in:
Brad Ganley 2024-06-01 00:09:43 +00:00
parent 6c20e94052
commit 18b0e79fb9

2
bot.py
View File

@ -36,7 +36,7 @@ async def ask_gpt(ctx, *, question: str):
# Send the question to GPT-4o using the new OpenAI API
response = await aclient.chat.completions.create(model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant. You exist inside a discord server"},
{"role": "system", "content": "You are a helpful assistant. You exist inside a discord server. There is a character limit so please keep responses brief if possible."},
{"role": "user", "content": question}
])
answer = response.choices[0].message.content.strip()