mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-05 03:02:35 +00:00
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:
parent
bda3becbe7
commit
937b3904eb
@ -320,7 +320,7 @@ class ChatTogether(BaseChatOpenAI):
|
|||||||
"""
|
"""
|
||||||
together_api_base: str = Field(
|
together_api_base: str = Field(
|
||||||
default_factory=from_env(
|
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",
|
alias="base_url",
|
||||||
)
|
)
|
||||||
|
@ -124,7 +124,7 @@ class TogetherEmbeddings(BaseModel, Embeddings):
|
|||||||
"""
|
"""
|
||||||
together_api_base: str = Field(
|
together_api_base: str = Field(
|
||||||
default_factory=from_env(
|
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",
|
alias="base_url",
|
||||||
)
|
)
|
||||||
|
@ -36,7 +36,7 @@ class Together(LLM):
|
|||||||
model = Together(model_name="mistralai/Mixtral-8x7B-Instruct-v0.1")
|
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."""
|
"""Base completions API URL."""
|
||||||
together_api_key: SecretStr = Field(
|
together_api_key: SecretStr = Field(
|
||||||
alias="api_key",
|
alias="api_key",
|
||||||
|
Loading…
Reference in New Issue
Block a user