fix(models): synchronize canonical runtime selection

This commit is contained in:
Xubin Ren
2026-08-16 11:50:56 +08:00
parent 0a6ee1c539
commit 731b8fc2ed
15 changed files with 265 additions and 16 deletions
+1
View File
@@ -1271,6 +1271,7 @@ export type InboundEvent =
event: "turn_model_updated";
chat_id: string;
model_name: string;
model_preset?: string | null;
}
| ({
event: "turn_end";
+2
View File
@@ -1636,12 +1636,14 @@ describe("NanobotClient", () => {
event: "turn_model_updated",
chat_id: "chat-a",
model_name: "deepseek/deepseek-chat",
model_preset: "Deep Research",
});
expect(chatHandler).toHaveBeenCalledWith({
event: "turn_model_updated",
chat_id: "chat-a",
model_name: "deepseek/deepseek-chat",
model_preset: "Deep Research",
});
});