update model 1106

This commit is contained in:
2023-12-06 17:25:46 +08:00
parent c7a024e6ef
commit 3e078fdd3c

View File

@@ -290,7 +290,7 @@ async def message_callback(room: MatrixRoom, event: RoomMessageText) -> None:
sum(client.get_token_length(m.content) for m in messages) + len(messages) * 6
)
if not model_name:
model_name = "gpt-3.5-turbo" if total_token < 3939 else "gpt-3.5-turbo-16k"
model_name = "gpt-3.5-turbo-1106"
print("messages", messages)
chat_model = ChatOpenAI(