mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-06 02:41:48 +00:00
fix(cli): omit empty api_mode when probing custom models
This commit is contained in:
parent
52c539d53a
commit
0df7e61d2c
2 changed files with 11 additions and 7 deletions
|
|
@ -3413,10 +3413,10 @@ def _model_flow_named_custom(config, provider_info):
|
|||
print()
|
||||
|
||||
print("Fetching available models...")
|
||||
models = fetch_api_models(
|
||||
api_key, base_url, timeout=8.0,
|
||||
api_mode=api_mode or None,
|
||||
)
|
||||
fetch_kwargs = {"timeout": 8.0}
|
||||
if api_mode:
|
||||
fetch_kwargs["api_mode"] = api_mode
|
||||
models = fetch_api_models(api_key, base_url, **fetch_kwargs)
|
||||
|
||||
if models:
|
||||
default_idx = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue