mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22097] [CLOSED] fix: ensure RAG and specialized OpenAI configs inherit environment values #26480
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22097
Author: @VedantMadane
Created: 3/1/2026
Status: ❌ Closed
Base:
main← Head:fix/config-openai-inheritance📝 Commits (1)
d61912cfix: ensure RAG and other specialized OpenAI configs inherit INITIAL_OPENAI environment values📊 Changes
1 file changed (+13 additions, -10 deletions)
View changed files
📝
backend/open_webui/config.py(+13 -10)📄 Description
Fixes #22084.
Problem
Internal logic in config.py was resetting OPENAI_API_BASE_URL and OPENAI_API_KEY to hardcoded defaults mid-way through initialization. This caused specialized modules (RAG, Image Generation, Audio STT/TTS) to ignore user-provided environment variables and fallback to the hardcoded OpenAI defaults instead of the user's primary OpenAI configuration.
Solution
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.