Merge PR #446: fix(cli): use correct visibility filter string in codex API model fetch
Authored by PercyDikec. Fixes #445. Changes 'hide' to 'hidden' in _fetch_models_from_api to match _read_cache_models and the actual API response format.
This commit is contained in:
commit
f658af45c2
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:
|
if item.get("supported_in_api") is False:
|
||||||
continue
|
continue
|
||||||
visibility = item.get("visibility", "")
|
visibility = item.get("visibility", "")
|
||||||
if isinstance(visibility, str) and visibility.strip().lower() == "hide":
|
if isinstance(visibility, str) and visibility.strip().lower() == "hidden":
|
||||||
continue
|
continue
|
||||||
priority = item.get("priority")
|
priority = item.get("priority")
|
||||||
rank = int(priority) if isinstance(priority, (int, float)) else 10_000
|
rank = int(priority) if isinstance(priority, (int, float)) else 10_000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue