mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-21 10:22:18 +00:00
fix(model): keep Nous picker from restoring stale custom keys
This commit is contained in:
parent
1b7b4d138a
commit
95a3affc2e
2 changed files with 73 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue