From 18b0e79fb92d46a63ef258a136c428db7c1b3441 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Sat, 1 Jun 2024 00:09:43 +0000 Subject: [PATCH] added instructions to keep responses shorter in prompt. --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index bc62173..a9ce145 100755 --- a/bot.py +++ b/bot.py @@ -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()