fix(config): reconcile presets with settings reload

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xubin Ren
2026-05-12 20:06:22 +08:00
committed by Xubin Ren
co-authored by Cursor
parent c450d6fd3f
commit b61c6304c3
4 changed files with 122 additions and 10 deletions
+1
View File
@@ -672,6 +672,7 @@ def _run_gateway(
"aihubmix": config.providers.aihubmix,
},
provider_snapshot_loader=load_provider_snapshot,
model_preset_snapshot_builder=lambda name: load_provider_snapshot(preset_name=name),
provider_signature=provider_snapshot.signature,
)