Skip to content

Commit

Permalink
fix ollama embedding model response #7451 (#7473)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenseeberg authored Jan 1, 2025
1 parent 01a108c commit 833bf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litellm/llms/ollama/completion/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def ollama_aembeddings(

response = await litellm.module_level_aclient.post(url=url, json=data)

response_json = await response.json()
response_json = response.json()

embeddings: List[List[float]] = response_json["embeddings"]
for idx, emb in enumerate(embeddings):
Expand Down

0 comments on commit 833bf1d

Please sign in to comment.