mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
fix(model-switch): mark bare custom provider as current
This commit is contained in:
parent
273ff5c4a4
commit
ebe0b77122
2 changed files with 5 additions and 1 deletions
|
|
@ -1720,7 +1720,10 @@ def list_authenticated_providers(
|
|||
results.append({
|
||||
"slug": slug,
|
||||
"name": grp["name"],
|
||||
"is_current": slug == current_provider,
|
||||
"is_current": slug == current_provider or (
|
||||
bool(current_base_url)
|
||||
and _grp_url_norm == current_base_url.strip().rstrip("/").lower()
|
||||
),
|
||||
"is_user_defined": True,
|
||||
"models": grp["models"],
|
||||
"total_models": len(grp["models"]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue