together[patch]: update base url (#25524)

Updated the Together base URL from `.ai` to `.xyz` since some customers
have reported problems with `.ai`.
This commit is contained in:
Hassan El Mghari 2024-08-18 10:48:30 -07:00 committed by GitHub
parent bda3becbe7
commit 937b3904eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -320,7 +320,7 @@ class ChatTogether(BaseChatOpenAI):
"""
together_api_base: str = Field(
default_factory=from_env(
"TOGETHER_API_BASE", default="https://api.together.ai/v1/"
"TOGETHER_API_BASE", default="https://api.together.xyz/v1/"
),
alias="base_url",
)

View File

@ -124,7 +124,7 @@ class TogetherEmbeddings(BaseModel, Embeddings):
"""
together_api_base: str = Field(
default_factory=from_env(
"TOGETHER_API_BASE", default="https://api.together.ai/v1/"
"TOGETHER_API_BASE", default="https://api.together.xyz/v1/"
),
alias="base_url",
)

View File

@ -36,7 +36,7 @@ class Together(LLM):
model = Together(model_name="mistralai/Mixtral-8x7B-Instruct-v0.1")
"""
base_url: str = "https://api.together.ai/v1/completions"
base_url: str = "https://api.together.xyz/v1/completions"
"""Base completions API URL."""
together_api_key: SecretStr = Field(
alias="api_key",