From a6b0414ea0ffc57a1850d4b2be637bac9d446da1 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sun, 24 May 2026 23:06:08 -0700 Subject: [PATCH] feat(providers): extend openai-api with live /v1/models fetch + gpt-5.5-pro Follow-up on top of @jacevys' PR #21437 cherry-pick: - _provider_model_ids() now also matches normalized == 'openai-api' for the live /v1/models fetch path, so users see the full catalog instead of just the curated list. - Add gpt-5.5-pro and gpt-5.3-codex to the curated list for parity with the existing 'openai' table (used as fallback when /v1/models fails). - Add scripts/release.py AUTHOR_MAP entry for jacevys so CI doesn't block the salvage PR. --- hermes_cli/models.py | 4 +++- scripts/release.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hermes_cli/models.py b/hermes_cli/models.py index ee4da1f3fad..2617ecf33ab 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -201,10 +201,12 @@ _PROVIDER_MODELS: dict[str, list[str]] = { ], "openai-api": [ "gpt-5.5", + "gpt-5.5-pro", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5-mini", + "gpt-5.3-codex", "gpt-4.1", "gpt-4o", "gpt-4o-mini", @@ -2240,7 +2242,7 @@ def provider_model_ids(provider: Optional[str], *, force_refresh: bool = False) live = fetch_ollama_cloud_models(force_refresh=force_refresh) if live: return live - if normalized == "openai": + if normalized in ("openai", "openai-api"): api_key = os.getenv("OPENAI_API_KEY", "").strip() if api_key: base_raw = os.getenv("OPENAI_BASE_URL", "").strip().rstrip("/") diff --git a/scripts/release.py b/scripts/release.py index 88ee8b7c478..4413f739513 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -49,6 +49,7 @@ AUTHOR_MAP = { "teknium1@gmail.com": "teknium1", "kenyon1977@gmail.com": "kenyonxu", "cipherframe@users.noreply.github.com": "CipherFrame", + "121752779+jacevys@users.noreply.github.com": "jacevys", "me@promplate.dev": "CNSeniorious000", "yichengqiao21@gmail.com": "YarrowQiao", "erhanyasarx@gmail.com": "erhnysr",