fix(model): keep Nous picker from restoring stale custom keys

This commit is contained in:
helix4u 2026-06-19 20:05:55 -06:00 committed by Teknium
parent 1b7b4d138a
commit 95a3affc2e
2 changed files with 73 additions and 0 deletions

View file

@ -325,6 +325,9 @@ def _model_flow_nous(config, current_model="", args=None):
# Reactivate Nous as the provider and update config
inference_url = creds.get("base_url", "")
_update_config_for_provider("nous", inference_url)
# Reload after the auth helper writes provider state. The incoming
# config object may still contain stale custom-provider fields.
config = load_config()
current_model_cfg = config.get("model")
if isinstance(current_model_cfg, dict):
model_cfg = dict(current_model_cfg)