forked from phoenix/litellm-mirror
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()
|
response_json = await response.json()
|
||||||
embeddings = response_json["embedding"]
|
embeddings = response_json["embedding"]
|
||||||
|
embeddings = [embeddings] # Ollama currently does not support batch embedding
|
||||||
## RESPONSE OBJECT
|
## RESPONSE OBJECT
|
||||||
output_data = []
|
output_data = []
|
||||||
for idx, embedding in enumerate(embeddings):
|
for idx, embedding in enumerate(embeddings):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue