mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #1109] [MERGED] fix: parsing of OPENAI_API_BASE_URLS env var #20578
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/1109
Author: @ther0bster
Created: 3/9/2024
Status: ✅ Merged
Merged: 3/9/2024
Merged by: @tjbck
Base:
dev← Head:fix-openai-env-var-parsing📝 Commits (2)
04ddbf4fix: button click issue9235864fix: parsing of OPENAI_API_BASE_URLS env var📊 Changes
7 files changed (+19 additions, -7 deletions)
View changed files
📝
backend/config.py(+1 -1)📝
src/lib/components/chat/Settings/Account.svelte(+3 -1)📝
src/lib/components/chat/Settings/Chats.svelte(+3 -1)📝
src/lib/components/chat/Settings/Models.svelte(+3 -1)📝
src/routes/(app)/documents/+page.svelte(+3 -1)📝
src/routes/(app)/modelfiles/+page.svelte(+3 -1)📝
src/routes/(app)/prompts/+page.svelte(+3 -1)📄 Description
Pull Request Checklist
Description
First, thanks for this great project!
Version
v0.1.110of open-webui introduced a feature that enables configuring multiple OpenAI API based endpoints.Currently, these endpoints can be stored and configured with the
OPENAI_API_KEYSandOPENAI_API_BASE_URLSenv vars.The env var
OPENAI_API_BASE_URLSis currently not parsed correctly, because instead, theOPENAI_API_BASE_URLis parsed.Tested by setting
OPENAI_API_BASE_URLS="https://api.openai.com/v1;https://api.mistral.ai/v1".This PR fixes the env var parsing.
Changelog Entry
Fixed
OPENAI_API_BASE_URLSenv var🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.