feat(webui): show persisted fallback preset on replies (NAN-133)

This commit is contained in:
Xubin Ren committed 2026-09-20 15:16:35 +08:00
1 parent db675a43b6
commit 8d0430c761
43 files changed
+919 -95

No files matched your search

+8
View File
@@ -292,6 +292,10 @@ def make_provider(
fallback_presets=fallback_presets,
provider_factory=lambda fb: _make_provider_core(config, preset=fb),
primary_context_window_tokens=resolved.context_window_tokens,
fallback_preset_names=[
fallback if isinstance(fallback, str) else None
for fallback in config.agents.defaults.fallback_models
],
)
return provider
@@ -366,6 +370,10 @@ def provider_signature(
resolved.context_window_tokens,
getattr(p, "proxy", None) if p else None,
p.thinking_style if p else None,
tuple(
fallback if isinstance(fallback, str) else None
for fallback in config.agents.defaults.fallback_models
),
tuple(_fallback_signature(fallback) for fallback in fallback_presets),
)