From 248cb157d35d8ad15baa2f99acf8f1bdcde02023 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:15:39 +0000 Subject: [PATCH] feat(api): update api base url --- src/codex/_client.py | 4 ++-- tests/test_client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codex/_client.py b/src/codex/_client.py index d9e44320..884d2f3d 100644 --- a/src/codex/_client.py +++ b/src/codex/_client.py @@ -50,8 +50,8 @@ ] ENVIRONMENTS: Dict[str, str] = { - "production": "https://api-alpha-o3gxj3oajfu.cleanlab.ai", - "staging": "https://api-alpha-staging-o3gxj3oajfu.cleanlab.ai", + "production": "https://api-codex-o3gxj3oajfu.cleanlab.ai", + "staging": "https://api-codex-staging-o3gxj3oajfu.cleanlab.ai", "local": "http://localhost:8080", } diff --git a/tests/test_client.py b/tests/test_client.py index d000ab1c..3eaa6536 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -522,7 +522,7 @@ def test_base_url_env(self) -> None: Codex(_strict_response_validation=True, environment="production") client = Codex(base_url=None, _strict_response_validation=True, environment="production") - assert str(client.base_url).startswith("https://api-alpha-o3gxj3oajfu.cleanlab.ai") + assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.cleanlab.ai") @pytest.mark.parametrize( "client", @@ -1263,7 +1263,7 @@ def test_base_url_env(self) -> None: AsyncCodex(_strict_response_validation=True, environment="production") client = AsyncCodex(base_url=None, _strict_response_validation=True, environment="production") - assert str(client.base_url).startswith("https://api-alpha-o3gxj3oajfu.cleanlab.ai") + assert str(client.base_url).startswith("https://api-codex-o3gxj3oajfu.cleanlab.ai") @pytest.mark.parametrize( "client",