mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #860] Attempt to connect to OpenAI with no configured API key #27763
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 @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
Reproduction Details
Confirmation:
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.
@tjbck commented on GitHub (Feb 23, 2024):
Working as intended, it only communicates with the backend to check if API key is provided.