mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 10:11:46 +03:00
refactor(webui): infer fallback from active model
This commit is contained in:
@@ -179,7 +179,6 @@ async def test_fallback_model_is_scoped_to_its_websocket_chat() -> None:
|
||||
assert isinstance(outbound.event, TurnModelUpdatedEvent)
|
||||
assert outbound.event.model == "deepseek/deepseek-chat"
|
||||
assert outbound.event.model_preset == "Deep Research"
|
||||
assert outbound.event.is_fallback is True
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -219,7 +218,6 @@ async def test_admitted_runtime_publishes_chat_scoped_model_and_preset(tmp_path)
|
||||
assert isinstance(outbound.event, TurnModelUpdatedEvent)
|
||||
assert outbound.event.model == "openai-codex/gpt-5.6"
|
||||
assert outbound.event.model_preset == "Codex"
|
||||
assert outbound.event.is_fallback is False
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user