mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Hejo
This commit is contained in:
@@ -568,10 +568,10 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
|
|||||||
# * extend bo 20 ostatnich
|
# * extend bo 20 ostatnich
|
||||||
if music:
|
if music:
|
||||||
history.append(message_table_muzyka[0])
|
history.append(message_table_muzyka[0])
|
||||||
history.extend(message_table_muzyka[-20:])
|
history.extend(message_table_muzyka[-15:])
|
||||||
else:
|
else:
|
||||||
history.append(MESSAGE_TABLE[0])
|
history.append(MESSAGE_TABLE[0])
|
||||||
history.extend(MESSAGE_TABLE[-20:])
|
history.extend(MESSAGE_TABLE[-15:])
|
||||||
logger.info("Historia wysłana:")
|
logger.info("Historia wysłana:")
|
||||||
logger.debug(history)
|
logger.debug(history)
|
||||||
response = await openai.ChatCompletion.acreate(
|
response = await openai.ChatCompletion.acreate(
|
||||||
|
|||||||
Reference in New Issue
Block a user