Skip to content

Conversation

@svenseeberg
Copy link
Contributor

@svenseeberg svenseeberg commented Dec 30, 2024

Title

Fix Ollama embedding response.

Relevant issues

#7451

Type

🐛 Bug Fix

Changes

Do not use await while converting the response into dict. The response is a normal object and was created with await in the previous line.

[REQUIRED] Testing - Attach a screenshot of any new tests passing locally

Works with the patch:

curl --location 'https://litellm.example.com/embeddings' \
--header 'Authorization: Bearer SECRET' \
--header 'Content-Type: application/json' \
--data '{"input": "Academia.edu uses", "model": "nomic-embed-text:latest"}'

@vercel
Copy link

vercel bot commented Dec 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ❌ Failed (Inspect) Dec 30, 2024 0:13am

@krrishdholakia krrishdholakia merged commit 833bf1d into BerriAI:main Jan 1, 2025
1 of 2 checks passed
rajatvig pushed a commit to rajatvig/litellm that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants