mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-01 16:51:53 +03:00
fix(models): synchronize canonical runtime selection
This commit is contained in:
@@ -1271,6 +1271,7 @@ export type InboundEvent =
|
||||
event: "turn_model_updated";
|
||||
chat_id: string;
|
||||
model_name: string;
|
||||
model_preset?: string | null;
|
||||
}
|
||||
| ({
|
||||
event: "turn_end";
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user