mistralai[patch]: 0.2.2 release (#28240)

mistralai 0.2.2 release
This commit is contained in:
Eugene Yurtsev
2024-11-20 17:18:15 -05:00
committed by GitHub
parent 1a66175e38
commit 2acc83f146
4 changed files with 343 additions and 311 deletions

View File

@@ -113,8 +113,14 @@ class MistralAIEmbeddings(BaseModel, Embeddings):
[-0.009100092574954033, 0.005071679595857859, -0.0029193938244134188]
"""
client: httpx.Client = Field(default=None) #: :meta private:
async_client: httpx.AsyncClient = Field(default=None) #: :meta private:
# The type for client and async_client is ignored because the type is not
# an Optional after the model is initialized and the model_validator
# is run.
client: httpx.Client = Field(default=None) # type: ignore # : :meta private:
async_client: httpx.AsyncClient = Field( # type: ignore # : meta private:
default=None
)
mistral_api_key: SecretStr = Field(
alias="api_key",
default_factory=secret_from_env("MISTRAL_API_KEY", default=""),