mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-21 20:13:39 +00:00
fmt
This commit is contained in:
parent
7bf54636ff
commit
576574c82c
@ -17,6 +17,7 @@ DEFAULT_NAMESPACES = [
|
|||||||
"langchain_core",
|
"langchain_core",
|
||||||
"langchain_community",
|
"langchain_community",
|
||||||
"langchain_anthropic",
|
"langchain_anthropic",
|
||||||
|
"langchain_groq",
|
||||||
]
|
]
|
||||||
|
|
||||||
ALL_SERIALIZABLE_MAPPINGS = {
|
ALL_SERIALIZABLE_MAPPINGS = {
|
||||||
|
@ -271,6 +271,11 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
|
|||||||
"chat_models",
|
"chat_models",
|
||||||
"ChatAnthropic",
|
"ChatAnthropic",
|
||||||
),
|
),
|
||||||
|
("langchain_groq", "chat_models", "ChatGroq"): (
|
||||||
|
"langchain_groq",
|
||||||
|
"chat_models",
|
||||||
|
"ChatGroq"
|
||||||
|
),
|
||||||
("langchain", "chat_models", "fireworks", "ChatFireworks"): (
|
("langchain", "chat_models", "fireworks", "ChatFireworks"): (
|
||||||
"langchain_fireworks",
|
"langchain_fireworks",
|
||||||
"chat_models",
|
"chat_models",
|
||||||
@ -287,6 +292,11 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
|
|||||||
"chat_models",
|
"chat_models",
|
||||||
"ChatVertexAI",
|
"ChatVertexAI",
|
||||||
),
|
),
|
||||||
|
("langchain", "chat_models", "mistralai", "ChatMistralAI"): (
|
||||||
|
"langchain_mistralai",
|
||||||
|
"chat_models",
|
||||||
|
"ChatMistralAI",
|
||||||
|
),
|
||||||
("langchain", "schema", "output", "ChatGenerationChunk"): (
|
("langchain", "schema", "output", "ChatGenerationChunk"): (
|
||||||
"langchain_core",
|
"langchain_core",
|
||||||
"outputs",
|
"outputs",
|
||||||
|
@ -359,8 +359,8 @@ def _convert_message_to_mistral_chat_message(
|
|||||||
class ChatMistralAI(BaseChatModel):
|
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) #: :meta private:
|
client: httpx.Client = Field(default=None, exclude=True) #: :meta private:
|
||||||
async_client: httpx.AsyncClient = Field(default=None) #: :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,24 +45,6 @@
|
|||||||
'ChatMistralAI',
|
'ChatMistralAI',
|
||||||
]),
|
]),
|
||||||
'kwargs': dict({
|
'kwargs': dict({
|
||||||
'async_client': dict({
|
|
||||||
'id': list([
|
|
||||||
'httpx',
|
|
||||||
'AsyncClient',
|
|
||||||
]),
|
|
||||||
'lc': 1,
|
|
||||||
'repr': '<httpx.AsyncClient object at 0x1119d6990>',
|
|
||||||
'type': 'not_implemented',
|
|
||||||
}),
|
|
||||||
'client': dict({
|
|
||||||
'id': list([
|
|
||||||
'httpx',
|
|
||||||
'Client',
|
|
||||||
]),
|
|
||||||
'lc': 1,
|
|
||||||
'repr': '<httpx.Client object at 0x1119d3b90>',
|
|
||||||
'type': 'not_implemented',
|
|
||||||
}),
|
|
||||||
'endpoint': 'boo',
|
'endpoint': 'boo',
|
||||||
'max_concurrent_requests': 64,
|
'max_concurrent_requests': 64,
|
||||||
'max_retries': 2,
|
'max_retries': 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user