From 45502824d9dbc3c4d56548776bd57f962b736e92 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jan 2025 01:27:34 +0000 Subject: [PATCH] feat(api): update prod api url --- src/codex/_client.py | 2 +- tests/test_client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/codex/_client.py b/src/codex/_client.py index 884d2f3d..74f0c871 100644 --- a/src/codex/_client.py +++ b/src/codex/_client.py @@ -50,7 +50,7 @@ ] ENVIRONMENTS: Dict[str, str] = { - "production": "https://api-codex-o3gxj3oajfu.cleanlab.ai", + "production": "https://api-codex.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 3eaa6536..b421541f 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-codex-o3gxj3oajfu.cleanlab.ai") + assert str(client.base_url).startswith("https://api-codex.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-codex-o3gxj3oajfu.cleanlab.ai") + assert str(client.base_url).startswith("https://api-codex.cleanlab.ai") @pytest.mark.parametrize( "client",