mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
BUG: issue with OpenWebUI Ollama proxy API endpoint for Embeddings #2039
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AndiMajore on GitHub (Sep 9, 2024).
Bug Report
Installation Method
Docker
Environment
Open WebUI Version: v0.3.21 (compared to v0.3.19)
Ollama: v0.3.10
Operating System: Ubuntu (but irrelevant)
Browser (if applicable): Chrome (but irrelevant, Issue is with API not UI)
Confirmation:
Expected Behavior:
Langchains OllamaEmbeddings class should work the same for http://$OPENWEBUI/ollama and http://$OLLAMA
Actual Behavior:
Langchains OllamaEmbeddings class works on http://$OLLAMA but crashes for http://$OPENWEBUI/ollama
Description
Bug Summary:
I am using langchain to work with LLMs.
Until now I could use the JWT of my OpenWebUI user, add the authorization info in the header field and use OllamaEmbeddings and Ollama classes to query the LLM. Until OpenWebUI version v0.3.19 using OllamaEmbeddings with the OpenWebUI endpoint to proxy requests to Ollama did work. Now in version v0.3.21 it returnes a response that cannot be parsed, because the response has an unexpected structure.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Docker Container Logs:
@tjbck commented on GitHub (Sep 9, 2024):
Fixed on dev.
@AndiMajore commented on GitHub (Sep 10, 2024):
Thank you!