Skip to content

Commit c4c39c1

Browse files
authored
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.
1 parent cc1e530 commit c4c39c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/partners/mistralai/langchain_mistralai/chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
TOOL_CALL_ID_PATTERN = re.compile(r"^[a-zA-Z0-9]{9}$")
8484

8585

86-
# This SSL context is equivelent to the default `verify=True`.
86+
# This SSL context is equivalent to the default `verify=True`.
8787
# https://www.python-httpx.org/advanced/ssl/#configuring-client-instances
8888
global_ssl_context = ssl.create_default_context(cafile=certifi.where())
8989

@@ -592,7 +592,7 @@ def _create_chat_result(self, response: dict) -> ChatResult:
592592
llm_output = {
593593
"token_usage": token_usage,
594594
"model_name": self.model,
595-
"model": self.model, # Backwards compatability
595+
"model": self.model, # Backwards compatibility
596596
}
597597
return ChatResult(generations=generations, llm_output=llm_output)
598598

0 commit comments

Comments
 (0)