Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ollama embedding model response #7451 #7473

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"}'

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