Test czy upgrade do długich modeli się udał.

This commit is contained in:
2023-08-29 13:53:59 +02:00
parent 620d36f915
commit fcd9fdeaa4
+3 -2
View File
@@ -529,6 +529,7 @@ async def check():
# trunk-ignore(pylint/R0913)
# trunk-ignore(pylint/R0915)
async def handle_response(prompt, vykidailo, bartender, history, username, music):
"""
Handle responses by appending them to a history, use OpenAI to
@@ -575,14 +576,14 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
# * extend bo 20 ostatnich
if music:
history.append(message_table_muzyka[0])
history.extend(message_table_muzyka[-15:])
history.extend(message_table_muzyka[-25:])
response = await openai.ChatCompletion.acreate(
model="gpt-4-32k", messages=history
)
else:
history.append(MESSAGE_TABLE[0])
history.extend(MESSAGE_TABLE[-15:])
history.extend(MESSAGE_TABLE[-25:])
response = await openai.ChatCompletion.acreate(
model="gpt-3.5-turbo-16k", messages=history
)