Fix ollama embedding response

This commit is contained in:
onukura 2024-03-25 16:25:22 +00:00
parent ef69eefcdb
commit 2df63cc621

View file

@ -396,6 +396,7 @@ async def ollama_aembeddings(
response_json = await response.json()
embeddings = response_json["embedding"]
embeddings = [embeddings] # Ollama currently does not support batch embedding
## RESPONSE OBJECT
output_data = []
for idx, embedding in enumerate(embeddings):