I have read and followed all the instructions provided in the README.md.
I am on the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
Expected Behavior:
Uploading knowledge in the UI when OPENAI_API_BASE_URL=http://litellm:4000 is used when RAG_EMBEDDING_ENGINE=openai should use http://litellm:4000/v1/embeddings
Actual Behavior:
401 Client Error: Unauthorized for url: https://api.openai.com/v1/embeddings
Description
Bug Summary:
[Provide a brief but clear summary of the bug]
@tjbck commented on GitHub (Jan 20, 2025):
Intended behaviour, you must set the openai api url from the settings ui.
Also, RAG_OPENAI_API_BASE_URL is a PersistantConfig, so updating as an env var won't apply after the first boot.
Related: https://docs.openwebui.com/getting-started/advanced-topics/env-configuration
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @btiernay on GitHub (Jan 20, 2025).
Bug Report
Installation Method
Docker:
Environment
Open WebUI Version:
v0.5.4 - 2024-01-05Operating System: macOS Big Sequoia
15.2 (24C101)Browser (if applicable): Chrome
Confirmation:
Expected Behavior:
Uploading knowledge in the UI when
OPENAI_API_BASE_URL=http://litellm:4000is used whenRAG_EMBEDDING_ENGINE=openaishould usehttp://litellm:4000/v1/embeddingsActual Behavior:
Description
Bug Summary:
[Provide a brief but clear summary of the bug]
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
@tjbck commented on GitHub (Jan 20, 2025):
Intended behaviour, you must set the openai api url from the settings ui.
Also, RAG_OPENAI_API_BASE_URL is a PersistantConfig, so updating as an env var won't apply after the first boot.
Related: https://docs.openwebui.com/getting-started/advanced-topics/env-configuration
@btiernay commented on GitHub (Jan 20, 2025):
👋 May I ask why? Certainly violates the Principle of Least Surprise .