[GH-ISSUE #13352] issue: Required API Key for OpenAI embeddings #103887

Closed
opened 2026-05-18 01:29:42 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Wasserwecken on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13352

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

LM Studio 0.3.15

Operating System

Windows 11

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Im using LM Studio as my LLM provider, thus running a local OpenAI server.
I want to use an embedding model, downloaded with LM Studio running locally.

But when setting up the connection in the document settings, the UI requires an API-Key:

Image

But I dont have an API key, because its a local server.

Actual Behavior

I managed to workaround the problem by setting the api key to .. You can set anything and it will work.

Please make the API-Key field optional like the connection settings in Admin Settings -> Connections -> OpenAI-API-Connections

Steps to Reproduce

  1. Go to Admin Settings -> Documents -> Embedding
  2. Set the engine to 'OpenAI'
  3. Enter a OpenAI server of your choice that does not require an API Key
  4. Try to save the settings

Logs & Screenshots

.

Additional Information

No response

Originally created by @Wasserwecken on GitHub (Apr 30, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/13352 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) LM Studio 0.3.15 ### Operating System Windows 11 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Im using LM Studio as my LLM provider, thus running a local OpenAI server. I want to use an embedding model, downloaded with LM Studio running locally. But when setting up the connection in the document settings, the UI requires an API-Key: ![Image](https://github.com/user-attachments/assets/9de414cf-3485-4a52-a50f-773ab04ffeaa) But I dont have an API key, because its a local server. ### Actual Behavior I managed to workaround the problem by setting the api key to `.`. You can set anything and it will work. Please make the API-Key field optional like the connection settings in Admin Settings -> Connections -> OpenAI-API-Connections ### Steps to Reproduce 1. Go to Admin Settings -> Documents -> Embedding 2. Set the engine to 'OpenAI' 3. Enter a OpenAI server of your choice that does not require an API Key 4. Try to save the settings ### Logs & Screenshots . ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-18 01:29:42 -05:00
Author
Owner

@tjbck commented on GitHub (Apr 30, 2025):

Intended behaviour.

<!-- gh-comment-id:2841454668 --> @tjbck commented on GitHub (Apr 30, 2025): Intended behaviour.
Author
Owner

@Classic298 commented on GitHub (Apr 30, 2025):

"But I dont have an API key, because its a local server."

You can still set an API key on your local server, no? And then access it with the API key.

<!-- gh-comment-id:2841530740 --> @Classic298 commented on GitHub (Apr 30, 2025): "But I dont have an API key, because its a local server." You can still set an API key on your local server, no? And then access it with the API key.
Author
Owner

@Wasserwecken commented on GitHub (Apr 30, 2025):

Sure, probably i can set one. But i dont have to and i dont need to.

Thus, requiring an API key might not be viable for everyone.
In the connection settings is the API-Key optional as expected.

My point is that the UI is confusing because in one case its optional and in the other case its not.
Its even more confusing because an API key might not be required at all, thus the UI should not enforce it

<!-- gh-comment-id:2841545653 --> @Wasserwecken commented on GitHub (Apr 30, 2025): Sure, probably i can set one. But i dont have to and i dont need to. Thus, requiring an API key might not be viable for everyone. In the connection settings is the API-Key optional as expected. My point is that the UI is confusing because in one case its optional and in the other case its not. Its even more confusing because an API key might not be required at all, thus the UI should not enforce it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#103887