Skip to content

Commit d78599b

Browse files
committed
fix(codex): update models.json URL after upstream repo move
OpenAI moved models.json from codex-rs/core/ to codex-rs/models-manager/. The old URL returns 404, causing repeated warnings on every request after the 1-hour cache TTL expires.
1 parent 727d0f4 commit d78599b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rotator_library/providers/codex_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def env_int(key: str, default: int) -> int:
9999

100100
CODEX_MODELS_JSON_URL = os.getenv(
101101
"CODEX_MODELS_JSON_URL",
102-
"https://raw.githubusercontent.com/openai/codex/refs/heads/main/codex-rs/core/models.json",
102+
"https://raw.githubusercontent.com/openai/codex/main/codex-rs/models-manager/models.json",
103103
)
104104
CODEX_MODELS_CACHE_TTL = env_int("CODEX_MODELS_CACHE_TTL", 3600) # 1 hour default
105105

0 commit comments

Comments
 (0)