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.
This commit is contained in:
parent
aeb87508c6
commit
a6b0414ea0
@ -201,10 +201,12 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||||||
],
|
],
|
||||||
"openai-api": [
|
"openai-api": [
|
||||||
"gpt-5.5",
|
"gpt-5.5",
|
||||||
|
"gpt-5.5-pro",
|
||||||
"gpt-5.4",
|
"gpt-5.4",
|
||||||
"gpt-5.4-mini",
|
"gpt-5.4-mini",
|
||||||
"gpt-5.4-nano",
|
"gpt-5.4-nano",
|
||||||
"gpt-5-mini",
|
"gpt-5-mini",
|
||||||
|
"gpt-5.3-codex",
|
||||||
"gpt-4.1",
|
"gpt-4.1",
|
||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
"gpt-4o-mini",
|
"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)
|
live = fetch_ollama_cloud_models(force_refresh=force_refresh)
|
||||||
if live:
|
if live:
|
||||||
return live
|
return live
|
||||||
if normalized == "openai":
|
if normalized in ("openai", "openai-api"):
|
||||||
api_key = os.getenv("OPENAI_API_KEY", "").strip()
|
api_key = os.getenv("OPENAI_API_KEY", "").strip()
|
||||||
if api_key:
|
if api_key:
|
||||||
base_raw = os.getenv("OPENAI_BASE_URL", "").strip().rstrip("/")
|
base_raw = os.getenv("OPENAI_BASE_URL", "").strip().rstrip("/")
|
||||||
|
|||||||
@ -49,6 +49,7 @@ AUTHOR_MAP = {
|
|||||||
"teknium1@gmail.com": "teknium1",
|
"teknium1@gmail.com": "teknium1",
|
||||||
"kenyon1977@gmail.com": "kenyonxu",
|
"kenyon1977@gmail.com": "kenyonxu",
|
||||||
"cipherframe@users.noreply.github.com": "CipherFrame",
|
"cipherframe@users.noreply.github.com": "CipherFrame",
|
||||||
|
"121752779+jacevys@users.noreply.github.com": "jacevys",
|
||||||
"me@promplate.dev": "CNSeniorious000",
|
"me@promplate.dev": "CNSeniorious000",
|
||||||
"yichengqiao21@gmail.com": "YarrowQiao",
|
"yichengqiao21@gmail.com": "YarrowQiao",
|
||||||
"erhanyasarx@gmail.com": "erhnysr",
|
"erhanyasarx@gmail.com": "erhnysr",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user