Bug Summary:
Open WebUI usually stores user settings such as Theme and Title Auto-Generation, but the same isn't true for OpenAI key & endpoint setting.
Steps to Reproduce:
Set OpenAI API key and custom base URL, shutdown and restart OpenWebUI.
Expected Behavior:
All settings should persist across restarts.
Actual Behavior:
The 2 OpenAI settings are gone after restart.
Environment
Operating System: macOS & Ubuntu
Browser (if applicable): Chrome and Safari
Reproduction Details
Confirmation:
I have read and followed all the instructions provided in the README.md.
I have reviewed the troubleshooting.md document.
I have included the browser console logs.
[] I have included the Docker container logs.
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
Installation Method
docker run command
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Originally created by @yfzhou0904 on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/826
# Bug Report
## Description
**Bug Summary:**
Open WebUI usually stores user settings such as Theme and Title Auto-Generation, but the same isn't true for OpenAI key & endpoint setting.
**Steps to Reproduce:**
Set OpenAI API key and custom base URL, shutdown and restart OpenWebUI.
**Expected Behavior:**
All settings should persist across restarts.
**Actual Behavior:**
The 2 OpenAI settings are gone after restart.
## Environment
- **Operating System:** macOS & Ubuntu
- **Browser (if applicable):** Chrome and Safari
## Reproduction Details
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I have reviewed the troubleshooting.md document.
- [x] I have included the browser console logs.
- [] I have included the Docker container logs.
## Logs and Screenshots
**Browser Console Logs:**
<img width="1328" alt="Screenshot 2024-02-21 at 16 23 17" src="https://github.com/open-webui/open-webui/assets/13145408/ee819a0a-e6c0-4bca-9426-bde61670450a">
**Docker Container Logs:**
[Include relevant Docker container logs, if applicable]
**Screenshots (if applicable):**
<img width="853" alt="Screenshot 2024-02-21 at 16 20 16" src="https://github.com/open-webui/open-webui/assets/13145408/70c8d7f3-7768-4b8a-9bdf-ab9d0addb66d">
## Installation Method
docker run command
## Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
## Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Hi, OpenAI key and the endpoint should be specified as env vars in the docker command OPENAI_API_KEY, OPENAI_API_BASE_URL respectively, Thanks!
<!-- gh-comment-id:1956207172 -->
@tjbck commented on GitHub (Feb 21, 2024):
Hi, OpenAI key and the endpoint should be specified as env vars in the docker command `OPENAI_API_KEY`, `OPENAI_API_BASE_URL` respectively, Thanks!
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.
Originally created by @yfzhou0904 on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/826
Bug Report
Description
Bug Summary:
Open WebUI usually stores user settings such as Theme and Title Auto-Generation, but the same isn't true for OpenAI key & endpoint setting.
Steps to Reproduce:
Set OpenAI API key and custom base URL, shutdown and restart OpenWebUI.
Expected Behavior:
All settings should persist across restarts.
Actual Behavior:
The 2 OpenAI settings are gone after restart.
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:

Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):

Installation Method
docker run command
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Feb 21, 2024):
Hi, OpenAI key and the endpoint should be specified as env vars in the docker command
OPENAI_API_KEY,OPENAI_API_BASE_URLrespectively, Thanks!