From ef1575600f06c1861a12448a6a4f49ce9f1d4afe Mon Sep 17 00:00:00 2001 From: KopekC Date: Thu, 6 Feb 2025 23:07:12 -0500 Subject: [PATCH] Changes to default urls --- src/codegen/sdk/ai/helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codegen/sdk/ai/helpers.py b/src/codegen/sdk/ai/helpers.py index a5fe6b3bd..70ccb622a 100644 --- a/src/codegen/sdk/ai/helpers.py +++ b/src/codegen/sdk/ai/helpers.py @@ -111,7 +111,7 @@ class OpenAIHelper(AbstractAIHelper): def __init__( self, openai_key: str, - api_base: str = "https://oai.hconeai.com/v1", + api_base: str = "https://api.openai.com/v1", headers=None, cache: bool | None = True, ) -> None: @@ -197,7 +197,7 @@ def __init__( self, anthropic_key: str, # Dont add /v1 to the path. Anthropic already adds it, so it will be a double /v1/v1 - api_base: str = "https://anthropic.hconeai.com/", + api_base: str = "https://api.anthropic.com", headers=None, openai_anthropic_translation: bool = True, cache: bool | None = True, @@ -387,8 +387,8 @@ def __init__( self, openai_key: str, anthropic_key: str | None = None, - openai_base: str = "https://oai.hconeai.com/v1", - anthropic_base: str = "https://anthropic.hconeai.com/", + openai_base: str = "https://api.openai.com/v1", + anthropic_base: str = "https://api.anthropic.com", headers=None, use_openai: bool = True, use_claude: bool = True,