mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
RAG_EMBEDDING_ENGINE=openai doesn't use OPENAI_API_BASE_URL #3327
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 @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 .