[GH-ISSUE #860] Attempt to connect to OpenAI with no configured API key #50900

Closed
opened 2026-05-05 11:30:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @robertvazan on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/860

Bug Report

Description

Bug Summary:
It looks like WebUI tries to establish connection to OpenAI server even if no API key is configured.

Steps to Reproduce:
No OpenAI API key is configured. Open WebUI in the browser.

Expected Behavior:
Nothing special happens.

Actual Behavior:
WebUI logs error that it cannot connect to OpenAI without API key.

Environment

  • Operating System: Fedora 39
  • Browser (if applicable): Firefox 122

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:
Object { detail: "Oops! It looks like there's a hiccup. The API key is missing. Please make sure to provide a valid API key to access this feature." }
index.3a450642.js:1:1894
OpenAI: Network Problem 2.a0ed6002.js:63:2320

Docker Container Logs:
https://api.openai.com/v1/models
INFO: 10.0.2.100:36408 - "GET /openai/api/models HTTP/1.1" 401 Unauthorized

Installation Method

Latest docker image.

Originally created by @robertvazan on GitHub (Feb 23, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/860 # Bug Report ## Description **Bug Summary:** It looks like WebUI tries to establish connection to OpenAI server even if no API key is configured. **Steps to Reproduce:** No OpenAI API key is configured. Open WebUI in the browser. **Expected Behavior:** Nothing special happens. **Actual Behavior:** WebUI logs error that it cannot connect to OpenAI without API key. ## Environment - **Operating System:** Fedora 39 - **Browser (if applicable):** Firefox 122 ## 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. - [x] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** Object { detail: "Oops! It looks like there's a hiccup. The API key is missing. Please make sure to provide a valid API key to access this feature." } [index.3a450642.js:1:1894](http://localhost:3000/_app/immutable/chunks/index.3a450642.js) OpenAI: Network Problem [2.a0ed6002.js:63:2320](http://localhost:3000/_app/immutable/nodes/2.a0ed6002.js) **Docker Container Logs:** https://api.openai.com/v1/models INFO: 10.0.2.100:36408 - "GET /openai/api/models HTTP/1.1" 401 Unauthorized ## Installation Method Latest docker image.
Author
Owner

@tjbck commented on GitHub (Feb 23, 2024):

Working as intended, it only communicates with the backend to check if API key is provided.

<!-- gh-comment-id:1960728891 --> @tjbck commented on GitHub (Feb 23, 2024): Working as intended, it only communicates with the backend to check if API key is provided.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#50900