mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fix
This commit is contained in:
@@ -585,12 +585,12 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
|
||||
temp = {"role : system", "content : Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}
|
||||
|
||||
if music:
|
||||
history.extend(message_table_muzyka)
|
||||
history.extend(message_table_muzyka[-20:0])
|
||||
response = await openai.ChatCompletion.acreate(
|
||||
model="gpt-3.5-turbo-16k", messages=history
|
||||
)
|
||||
else:
|
||||
history.extend(MESSAGE_TABLE)
|
||||
history.extend(MESSAGE_TABLE[-20:0])
|
||||
response = await openai.ChatCompletion.acreate(
|
||||
model="gpt-3.5-turbo-16k", messages=history
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user