mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
webui not remembering OpenAI api key #550
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?
Originally created by @PixelGames987 on GitHub (Mar 27, 2024).
Bug Report
Description
Bug Summary:
Hello, I've recently installed open webui on my pc, on both Windows and Fedora kde (The docker version). I was using it mainly for OpenAI api, but I've noticed, every time I start docker, I would have my connections tab reset and I would have to paste in the OpenAI key once again.
Steps to Reproduce:
Restart the container or docker engine
Expected Behavior:
I want it to save my connections tab, so I wouldn't have to re-paste it in every time I reboot my pc.
Actual Behavior:
The connections tab gets reset and the OpenAI key is no longer there
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
Not needed.
Docker Container Logs:
2024-03-27 19:18:36 No WEBUI_SECRET_KEY provided
2024-03-27 19:18:36 Loading WEBUI_SECRET_KEY from .webui_secret_key
2024-03-27 19:18:42 INFO: Started server process [1]
2024-03-27 19:18:42 INFO: Waiting for application startup.
2024-03-27 19:18:42 INFO: Application startup complete.
2024-03-27 19:18:42 INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
2024-03-27 19:18:52
2024-03-27 19:18:52 #------------------------------------------------------------#
2024-03-27 19:18:52 # #
2024-03-27 19:18:52 # 'I get frustrated when the product...' #
2024-03-27 19:18:52 # https://github.com/BerriAI/litellm/issues/new #
2024-03-27 19:18:52 # #
2024-03-27 19:18:52 #------------------------------------------------------------#
2024-03-27 19:18:52
2024-03-27 19:18:52 Thank you for using LiteLLM! - Krrish & Ishaan
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52 Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET / HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /_app/immutable/entry/start.9b1a1eed.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49006 - "GET /_app/immutable/chunks/index.7f1e0645.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49000 - "GET /_app/immutable/chunks/scheduler.161605a7.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49020 - "GET /_app/immutable/chunks/singletons.c453f61b.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49042 - "GET /_app/immutable/chunks/index.acd0f037.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49036 - "GET /_app/immutable/entry/app.36278ed7.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/config HTTP/1.1" 200 OK
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/v1/auths/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /openai/api/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/modelfiles/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/documents/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /static/favicon.png HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /user.png HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /api/changelog HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /openai/api/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /ollama/urls HTTP/1.1" 200 OK
2024-03-27 19:18:58 get_all_models
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/urls HTTP/1.1" 200 OK
2024-03-27 19:18:58 get_all_models
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/keys HTTP/1.1" 200 OK
Screenshots (if applicable):

Installation Method
I've installed it using the recommended docker container on both Linux and Windows
(Sorry for my bad English)
@justinh-rahb commented on GitHub (Mar 27, 2024):
Persistent settings saved to a file in the data volume is coming in a future release but until then you can use the environment variable
OPENAI_API_KEYwhen launching the container to set it permanently.@PixelGames987 commented on GitHub (Mar 27, 2024):
Thanks, you really helped me.
@PixelGames987 commented on GitHub (Mar 30, 2024):
Hello, this might be a stupid question, but I've also built the app with npm on my raspberry pi 4. Is it possible to also add that flag when running the start script, so the OpenAI api key will get added to the webui when I turn on open-webui?
This is the starting script I'm using:
`#!/bin/bash
cd open-webui/backend/
source venv/bin/activate
bash start.sh &`
@justinh-rahb commented on GitHub (Mar 30, 2024):
Just put it in the
.envfile for that case.@PixelGames987 commented on GitHub (Mar 30, 2024):
Thanks :)