mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 15:00:23 +00:00
fmt
This commit is contained in:
@@ -102,6 +102,16 @@ def test_serializable_mapping() -> None:
|
|||||||
"modifier",
|
"modifier",
|
||||||
"RemoveMessage",
|
"RemoveMessage",
|
||||||
),
|
),
|
||||||
|
("langchain", "chat_models", "mistralai", "MistralAI"): (
|
||||||
|
"langchain_mistralai",
|
||||||
|
"chat_models",
|
||||||
|
"ChatMistralAI",
|
||||||
|
),
|
||||||
|
("langchain_groq", "chat_models", "ChatGroq"): (
|
||||||
|
"langchain_groq",
|
||||||
|
"chat_models",
|
||||||
|
"ChatGroq",
|
||||||
|
),
|
||||||
}
|
}
|
||||||
serializable_modules = import_all_modules("langchain")
|
serializable_modules = import_all_modules("langchain")
|
||||||
|
|
||||||
|
@@ -274,7 +274,7 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
|
|||||||
("langchain_groq", "chat_models", "ChatGroq"): (
|
("langchain_groq", "chat_models", "ChatGroq"): (
|
||||||
"langchain_groq",
|
"langchain_groq",
|
||||||
"chat_models",
|
"chat_models",
|
||||||
"ChatGroq"
|
"ChatGroq",
|
||||||
),
|
),
|
||||||
("langchain", "chat_models", "fireworks", "ChatFireworks"): (
|
("langchain", "chat_models", "fireworks", "ChatFireworks"): (
|
||||||
"langchain_fireworks",
|
"langchain_fireworks",
|
||||||
|
@@ -362,7 +362,9 @@ class ChatMistralAI(BaseChatModel):
|
|||||||
"""A chat model that uses the MistralAI API."""
|
"""A chat model that uses the MistralAI API."""
|
||||||
|
|
||||||
client: httpx.Client = Field(default=None, exclude=True) #: :meta private:
|
client: httpx.Client = Field(default=None, exclude=True) #: :meta private:
|
||||||
async_client: httpx.AsyncClient = Field(default=None, exclude=True) #: :meta private:
|
async_client: httpx.AsyncClient = Field(
|
||||||
|
default=None, exclude=True
|
||||||
|
) #: :meta private:
|
||||||
mistral_api_key: Optional[SecretStr] = Field(
|
mistral_api_key: Optional[SecretStr] = Field(
|
||||||
alias="api_key",
|
alias="api_key",
|
||||||
default_factory=secret_from_env("MISTRAL_API_KEY", default=None),
|
default_factory=secret_from_env("MISTRAL_API_KEY", default=None),
|
||||||
|
@@ -45,6 +45,13 @@
|
|||||||
'AzureChatOpenAI',
|
'AzureChatOpenAI',
|
||||||
]),
|
]),
|
||||||
'kwargs': dict({
|
'kwargs': dict({
|
||||||
|
'azure_ad_token': dict({
|
||||||
|
'id': list([
|
||||||
|
'AZURE_OPENAI_AD_TOKEN',
|
||||||
|
]),
|
||||||
|
'lc': 1,
|
||||||
|
'type': 'secret',
|
||||||
|
}),
|
||||||
'azure_endpoint': 'https://test.azure.com',
|
'azure_endpoint': 'https://test.azure.com',
|
||||||
'deployment_name': 'test',
|
'deployment_name': 'test',
|
||||||
'max_retries': 2,
|
'max_retries': 2,
|
||||||
|
Reference in New Issue
Block a user