mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(cli): use correct visibility filter string in codex API model fetch
This commit is contained in:
parent
21d61bdd71
commit
36214d14db
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ def _fetch_models_from_api(access_token: str) -> List[str]:
|
|||
if item.get("supported_in_api") is False:
|
||||
continue
|
||||
visibility = item.get("visibility", "")
|
||||
if isinstance(visibility, str) and visibility.strip().lower() == "hide":
|
||||
if isinstance(visibility, str) and visibility.strip().lower() == "hidden":
|
||||
continue
|
||||
priority = item.get("priority")
|
||||
rank = int(priority) if isinstance(priority, (int, float)) else 10_000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue