mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #16562] [CLOSED] fix: Allow specifying OpenAI API configurations via environment variable #63027
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/16562
Author: @blake-r
Created: 8/13/2025
Status: ❌ Closed
Base:
dev← Head:enhancements📝 Commits (1)
b32a869Parse OPENAI_API_CONFIGS from environment variables📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+4 -1)📄 Description
This pull request introduces the ability to specify OpenAI API configurations through an environment variable OPENAI_API_CONFIGS. This allows users to override the default configuration defined in the config.py file, providing more flexibility in connecting to different OpenAI API instances or using custom configurations. The value of this environment variable is parsed as a JSON object and used to populate the OPENAI_API_CONFIGS attribute.
devbranch.Changelog Entry
Description
Added
Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.