Can't add a new OpenAI API key #2510
Simplegram
started this conversation in
General
Replies: 2 comments
-
After opening the config.json file, I realized that there was an empty string after the first base url like this:
Removing the empty string and restarting the container solved my problem. Maybe this is a bug? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ya we've been tracking this elusive one since 0.1.125 released... you may have given us new clues, thanks for the thorough logs! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Description
Bug Summary:
Can't add a new OpenAI API key, log says that OPENAI_API_KEYS list index is out of range
Steps to Reproduce:
I'm not entirely sure, but after deleting the default key, the toggle got disabled after closing the settings tab or after a refresh.
Expected Behavior:
I can add an OpenAI base url and key
Actual Behavior:
When I press save, the usual success indicator shows up at the top. After closing the settings tab or refresh, the toggle is disabled when I open the page again.
Environment
Open WebUI Version: 0.1.125
Ollama (if applicable): 0.1.38 and 0.1.39-rc1
Operating System: Debian 12
Browser (if applicable): Microsoft Edge 125.0.2535.51 and Firefox 126.0
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
After a refresh
After opening Connections page
After toggling on the OpenAI API switch
After pressing save with a new OpenAI API key
Docker Container Logs:
After opening Connections page
After pressing save with a new OpenAI API key
Screenshots (if applicable):
After pressing save with a new OpenAI API key
After refreshing
Installation Method
Docker run
Additional Information
This happens after updating to 0.1.125.
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!
Beta Was this translation helpful? Give feedback.
All reactions