mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 03:56:39 +00:00
fireworks: fix integration tests (#20973)
This commit is contained in:
parent
9fa9f05e5d
commit
9ec7151317
@ -5,7 +5,7 @@ all: help
|
|||||||
|
|
||||||
# Define a variable for the test file path.
|
# Define a variable for the test file path.
|
||||||
TEST_FILE ?= tests/unit_tests/
|
TEST_FILE ?= tests/unit_tests/
|
||||||
integration_test integration_tests: TEST_FILE ?= tests/integration_tests/
|
integration_test integration_tests: TEST_FILE = tests/integration_tests/
|
||||||
|
|
||||||
test tests integration_test integration_tests:
|
test tests integration_test integration_tests:
|
||||||
poetry run pytest $(TEST_FILE)
|
poetry run pytest $(TEST_FILE)
|
||||||
|
@ -13,3 +13,21 @@ class TestFireworksStandard(ChatModelIntegrationTests):
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def chat_model_class(self) -> Type[BaseChatModel]:
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
||||||
return ChatFireworks
|
return ChatFireworks
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
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,
|
||||||
|
chat_model_class: Type[BaseChatModel],
|
||||||
|
chat_model_params: dict,
|
||||||
|
chat_model_has_tool_calling: bool,
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_list_content(
|
||||||
|
chat_model_class, chat_model_params, chat_model_has_tool_calling
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user