Description: Briefly describe the changes in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Description
First, thanks for this great project!
Version v0.1.110 of 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_KEYS and OPENAI_API_BASE_URLS env vars.
The env var OPENAI_API_BASE_URLS is currently not parsed correctly, because instead, the OPENAI_API_BASE_URL is 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
Fix parsing of OPENAI_API_BASE_URLS env var
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/1109
**Author:** [@ther0bster](https://github.com/ther0bster)
**Created:** 3/9/2024
**Status:** ✅ Merged
**Merged:** 3/9/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `fix-openai-env-var-parsing`
---
### 📝 Commits (2)
- [`04ddbf4`](https://github.com/open-webui/open-webui/commit/04ddbf43065fd8372c39665730c6a159d6013ff1) fix: button click issue
- [`9235864`](https://github.com/open-webui/open-webui/commit/9235864f56de49fa5d3866afb58bd23da9c83fa6) fix: parsing of OPENAI_API_BASE_URLS env var
### 📊 Changes
**7 files changed** (+19 additions, -7 deletions)
<details>
<summary>View changed files</summary>
📝 `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)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [x] **Documentation:** Have you updated relevant documentation?
- [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
---
## Description
First, thanks for this great project!
Version `v0.1.110` of 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_KEYS` and `OPENAI_API_BASE_URLS` env vars.
The env var `OPENAI_API_BASE_URLS` is currently not parsed correctly, because instead, the `OPENAI_API_BASE_URL` is 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
- Fix parsing of `OPENAI_API_BASE_URLS` env var
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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.
📋 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.