2024-04-09 19:43:00 +00:00
|
|
|
"""Standard LangChain interface tests"""
|
|
|
|
|
|
|
|
from typing import Type
|
|
|
|
|
|
|
|
from langchain_core.language_models import BaseChatModel
|
|
|
|
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests
|
|
|
|
|
|
|
|
from langchain_mistralai import ChatMistralAI
|
|
|
|
|
|
|
|
|
|
|
|
class TestMistralStandard(ChatModelIntegrationTests):
|
2024-06-17 20:37:41 +00:00
|
|
|
@property
|
2024-04-09 19:43:00 +00:00
|
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
|
|
return ChatMistralAI
|
2024-04-17 17:38:24 +00:00
|
|
|
|
2024-06-17 20:37:41 +00:00
|
|
|
@property
|
2024-04-17 17:38:24 +00:00
|
|
|
def chat_model_params(self) -> dict:
|
2024-06-17 20:37:41 +00:00
|
|
|
return {"model": "mistral-large-latest", "temperature": 0}
|