added instructions to keep responses shorter in prompt.
This commit is contained in:
parent
6c20e94052
commit
18b0e79fb9
2
bot.py
2
bot.py
@ -36,7 +36,7 @@ async def ask_gpt(ctx, *, question: str):
|
|||||||
# Send the question to GPT-4o using the new OpenAI API
|
# 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",
|
||||||
messages=[
|
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}
|
{"role": "user", "content": question}
|
||||||
])
|
])
|
||||||
answer = response.choices[0].message.content.strip()
|
answer = response.choices[0].message.content.strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user