mistralai[patch]: Fix Typos in Comments and Improve Compatibility Note (#31616)

Description:  
This pull request corrects minor spelling mistakes in the comments
within the `chat_models.py` file of the MistralAI partner integration.
Specifically, it fixes the spelling of "equivalent" and "compatibility"
in two separate comments. These changes improve code readability and
maintain professional documentation standards. No functional code
changes are included.
This commit is contained in:
FT 2025-06-17 15:23:25 +02:00 committed by GitHub
parent cc1e53008f
commit c4c39c1ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ logger = logging.getLogger(__name__)
TOOL_CALL_ID_PATTERN = re.compile(r"^[a-zA-Z0-9]{9}$")
# This SSL context is equivelent to the default `verify=True`.
# This SSL context is equivalent to the default `verify=True`.
# https://www.python-httpx.org/advanced/ssl/#configuring-client-instances
global_ssl_context = ssl.create_default_context(cafile=certifi.where())
@ -592,7 +592,7 @@ class ChatMistralAI(BaseChatModel):
llm_output = {
"token_usage": token_usage,
"model_name": self.model,
"model": self.model, # Backwards compatability
"model": self.model, # Backwards compatibility
}
return ChatResult(generations=generations, llm_output=llm_output)