mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-16 06:42:10 +00:00
update to gpt-4
This commit is contained in:
@@ -569,13 +569,21 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
|
|||||||
if music:
|
if music:
|
||||||
history.append(message_table_muzyka[0])
|
history.append(message_table_muzyka[0])
|
||||||
history.extend(message_table_muzyka[-15:])
|
history.extend(message_table_muzyka[-15:])
|
||||||
|
response = await openai.ChatCompletion.acreate(
|
||||||
|
model="gpt-4-32k", messages=history
|
||||||
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
history.append(MESSAGE_TABLE[0])
|
history.append(MESSAGE_TABLE[0])
|
||||||
history.extend(MESSAGE_TABLE[-15:])
|
history.extend(MESSAGE_TABLE[-15:])
|
||||||
|
response = await openai.ChatCompletion.acreate(
|
||||||
|
model="gpt-3.5-turbo-16k", messages=history
|
||||||
|
)
|
||||||
|
|
||||||
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(
|
||||||
model="gpt-4", messages=history
|
model="gpt-3.5-turbo", messages=history
|
||||||
)
|
)
|
||||||
await asyncio.sleep(10)
|
await asyncio.sleep(10)
|
||||||
result = ""
|
result = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user