diff --git a/bot.py b/bot.py index a9ce145..4a4842b 100755 --- a/bot.py +++ b/bot.py @@ -34,7 +34,7 @@ async def on_message(message): async def ask_gpt(ctx, *, question: str): try: # Send the question to GPT-4o using the new OpenAI API - response = await aclient.chat.completions.create(model="gpt-4o", + response = await aclient.chat.completions.create(model="gpt-4o", max_tokens=2000, messages=[ {"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}