Skip to content

Commit 14595fb

Browse files
kopekCtkucar
authored and
tkucar
committed
Changes to default urls (#357)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ x] I have added tests for my changes - [x ] I have updated the documentation or added new documentation as needed
1 parent 36cf065 commit 14595fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/codegen/sdk/ai/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class OpenAIHelper(AbstractAIHelper):
111111
def __init__(
112112
self,
113113
openai_key: str,
114-
api_base: str = "https://oai.hconeai.com/v1",
114+
api_base: str = "https://api.openai.com/v1",
115115
headers=None,
116116
cache: bool | None = True,
117117
) -> None:
@@ -197,7 +197,7 @@ def __init__(
197197
self,
198198
anthropic_key: str,
199199
# Dont add /v1 to the path. Anthropic already adds it, so it will be a double /v1/v1
200-
api_base: str = "https://anthropic.hconeai.com/",
200+
api_base: str = "https://api.anthropic.com",
201201
headers=None,
202202
openai_anthropic_translation: bool = True,
203203
cache: bool | None = True,
@@ -387,8 +387,8 @@ def __init__(
387387
self,
388388
openai_key: str,
389389
anthropic_key: str | None = None,
390-
openai_base: str = "https://oai.hconeai.com/v1",
391-
anthropic_base: str = "https://anthropic.hconeai.com/",
390+
openai_base: str = "https://api.openai.com/v1",
391+
anthropic_base: str = "https://api.anthropic.com",
392392
headers=None,
393393
use_openai: bool = True,
394394
use_claude: bool = True,

0 commit comments

Comments
 (0)