fix: create_embedding broken response for input type str

This commit is contained in:
Andrei Betlen 2024-02-15 16:09:48 -05:00
parent ea1f88dd29
commit 0ce66bc080

View file

@ -720,6 +720,8 @@ class Llama:
assert self._model.model is not None
model_name: str = model if model is not None else self.model_path
input = input if isinstance(input, list) else [input]
# get numeric embeddings
embeds: List[List[float]]
total_tokens: int