mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-15 16:24:23 +00:00
Fix ollama embedding response
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user