mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-16 06:42:10 +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]}
|
temp = {"role : system", "content : Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}
|
||||||
|
|
||||||
if music:
|
if music:
|
||||||
history.extend(message_table_muzyka)
|
history.extend(message_table_muzyka[-20:0])
|
||||||
response = await openai.ChatCompletion.acreate(
|
response = await openai.ChatCompletion.acreate(
|
||||||
model="gpt-3.5-turbo-16k", messages=history
|
model="gpt-3.5-turbo-16k", messages=history
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
history.extend(MESSAGE_TABLE)
|
history.extend(MESSAGE_TABLE[-20:0])
|
||||||
response = await openai.ChatCompletion.acreate(
|
response = await openai.ChatCompletion.acreate(
|
||||||
model="gpt-3.5-turbo-16k", messages=history
|
model="gpt-3.5-turbo-16k", messages=history
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user