mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 22:14:18 +00:00
Using `pyupgrade` to get all `partners` code up to 3.9 standards (mostly, fixing old `typing` imports).
23 lines
649 B
Python
23 lines
649 B
Python
"""Standard LangChain interface tests"""
|
|
|
|
from langchain_core.language_models import BaseChatModel
|
|
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
|
|
ChatModelIntegrationTests, # type: ignore[import-not-found]
|
|
)
|
|
|
|
from langchain_mistralai import ChatMistralAI
|
|
|
|
|
|
class TestMistralStandard(ChatModelIntegrationTests):
|
|
@property
|
|
def chat_model_class(self) -> type[BaseChatModel]:
|
|
return ChatMistralAI
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {"model": "mistral-large-latest", "temperature": 0}
|
|
|
|
@property
|
|
def supports_json_mode(self) -> bool:
|
|
return True
|