From 32fed50be3452b3eeed0b96e67d0c3f950d29109 Mon Sep 17 00:00:00 2001 From: "shengzhe.li" Date: Tue, 18 Jun 2024 05:50:36 +0900 Subject: [PATCH] Fix DummyTextEmbedder --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9a104d9..a34c028 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,7 +25,7 @@ def pytest_collection_modifyitems(config: pytest.Config, items: pytest.Parser): class DummyTextEmbedder(TextEmbedder): - def encode(self, text: str | list[str]) -> np.ndarray: + def encode(self, text: str | list[str], prompt: str | None = None) -> np.ndarray: if isinstance(text, str): batch_size = 1 else: