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

[Bug]: ollama integration embeddings #7572

Open
PietFourie opened this issue Jan 5, 2025 · 0 comments
Open

[Bug]: ollama integration embeddings #7572

PietFourie opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@PietFourie
Copy link

PietFourie commented Jan 5, 2025

Direct curl command to ollama works. Ollama also registes this call. Litellm can not process response

curl -X POST http://localhost:3360/embeddings
-H "Content-Type: application/json"
-d '{
"model": "bge-m3",
"input": "Hello, how are you?"
}'
{"error":{"message":"litellm.APIConnectionError: object dict can't be used in 'await' expression\nTraceback (most recent call last):\n File "/usr/local/lib/python3.13/site-packages/litellm/main.py", line 3149, in aembedding\n response = await init_response # type: ignore\n ^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.13/site-packages/litellm/llms/ollama/completion/handler.py", line 55, in ollama_aembeddings\n response_json = await response.json()\n ^^^^^^^^^^^^^^^^^^^^^\nTypeError: object dict can't be used in 'await' expression\n\nReceived Model Group=bge-m3\nAvailable Model Group Fallbacks=None","type":null,"param":null,"code":"500"}}%

@PietFourie PietFourie added the bug Something isn't working label Jan 5, 2025
@PietFourie PietFourie changed the title [Bug]: Ollama docker and Litellm Docker do not work [Bug]: Cancelled Jan 5, 2025
@PietFourie PietFourie changed the title [Bug]: Cancelled [Bug]: ollama integration embeddings Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant