From 7aa15720767bf37dd5aea72f357805d4817a92d2 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 5 Apr 2024 17:56:02 +0200 Subject: [PATCH] fix test --- .../components/embedders/test_hugging_face_api_text_embedder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/components/embedders/test_hugging_face_api_text_embedder.py b/test/components/embedders/test_hugging_face_api_text_embedder.py index 33468b736d..c5a14db481 100644 --- a/test/components/embedders/test_hugging_face_api_text_embedder.py +++ b/test/components/embedders/test_hugging_face_api_text_embedder.py @@ -25,7 +25,7 @@ def mock_embedding_generation(json, **kwargs): class TestHuggingFaceAPITextEmbedder: def test_init_invalid_api_type(self): with pytest.raises(ValueError): - HuggingFaceAPITextEmbedder(api_type="invalid_api_type") + HuggingFaceAPITextEmbedder(api_type="invalid_api_type", api_params={}) def test_init_serverless(self, mock_check_valid_model): model = "BAAI/bge-small-en-v1.5"