Skip to content

Commit

Permalink
Fix DummyTextEmbedder
Browse files Browse the repository at this point in the history
  • Loading branch information
lsz05 committed Jun 17, 2024
1 parent 5458301 commit 32fed50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 32fed50

Please sign in to comment.