mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
d96f67b06f
- Refactor standard test classes to make them easier to configure - Update openai to support stop_sequences init param - Update groq to support stop_sequences init param - Update fireworks to support max_retries init param - Update ChatModel.bind_tools to type tool_choice - Update groq to handle tool_choice="any". **this may be controversial** --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
27 lines
806 B
Python
27 lines
806 B
Python
"""Standard LangChain interface tests"""
|
|
|
|
from typing import Type
|
|
|
|
import pytest
|
|
from langchain_core.language_models import BaseChatModel
|
|
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests
|
|
|
|
from langchain_fireworks import ChatFireworks
|
|
|
|
|
|
class TestFireworksStandard(ChatModelIntegrationTests):
|
|
@property
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
return ChatFireworks
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {
|
|
"model": "accounts/fireworks/models/firefunction-v1",
|
|
"temperature": 0,
|
|
}
|
|
|
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
|
def test_tool_message_histories_list_content(self, model: BaseChatModel) -> None:
|
|
super().test_tool_message_histories_list_content(model)
|