Skip to content

Commit 58ef0f2

Browse files
feat(api): update prod api url (#32)
1 parent 13e6f7c commit 58ef0f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/codex/_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
]
5151

5252
ENVIRONMENTS: Dict[str, str] = {
53-
"production": "https://api-codex-o3gxj3oajfu.cleanlab.ai",
53+
"production": "https://api-codex.cleanlab.ai",
5454
"staging": "https://api-codex-staging-o3gxj3oajfu.cleanlab.ai",
5555
"local": "http://localhost:8080",
5656
}

tests/test_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def test_base_url_env(self) -> None:
522522
Codex(_strict_response_validation=True, environment="production")
523523

524524
client = Codex(base_url=None, _strict_response_validation=True, environment="production")
525-
assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.cleanlab.ai")
525+
assert str(client.base_url).startswith("https://api-codex.cleanlab.ai")
526526

527527
@pytest.mark.parametrize(
528528
"client",
@@ -1263,7 +1263,7 @@ def test_base_url_env(self) -> None:
12631263
AsyncCodex(_strict_response_validation=True, environment="production")
12641264

12651265
client = AsyncCodex(base_url=None, _strict_response_validation=True, environment="production")
1266-
assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.cleanlab.ai")
1266+
assert str(client.base_url).startswith("https://api-codex.cleanlab.ai")
12671267

12681268
@pytest.mark.parametrize(
12691269
"client",

0 commit comments

Comments
 (0)