fix ollama embedding model response #7451 (#7473)

This commit is contained in:
Sven Seeberg 2025-01-01 08:24:08 +01:00 committed by GitHub
parent 01a108cf82
commit 833bf1da22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):