mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
Fix ollama embedding response
This commit is contained in:
parent
ef69eefcdb
commit
2df63cc621
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue