We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea1f88d commit 0ce66bcCopy full SHA for 0ce66bc
llama_cpp/llama.py
@@ -720,6 +720,8 @@ def create_embedding(
720
assert self._model.model is not None
721
model_name: str = model if model is not None else self.model_path
722
723
+ input = input if isinstance(input, list) else [input]
724
+
725
# get numeric embeddings
726
embeds: List[List[float]]
727
total_tokens: int
0 commit comments