Skip to content

Commit ddee22f

Browse files
feat(api): update api base url (#28)
1 parent 035428d commit ddee22f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/codex/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
]
5151

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

tests/test_client.py

Lines changed: 2 additions & 2 deletions
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-alpha-o3gxj3oajfu.cleanlab.ai")
525+
assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.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-alpha-o3gxj3oajfu.cleanlab.ai")
1266+
assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.cleanlab.ai")
12671267

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

0 commit comments

Comments
 (0)