[GH-ISSUE #11411] API Key length restrictions? #16219

Closed
opened 2026-04-19 22:13:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Vladimir-Va on GitHub (Mar 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11411

Hello.
Are there any restrictions on the length of the API key?
On the same Docker Container installation.
Two proxy providers compatible with the endpoint of the OpenAI.
With a key length of up to 64 characters, they work perfectly.
But the third one has a key length of 212 characters, and in the chat I see an error with it: 'str' object has no attribute 'get'
And in server logs:
open_webui.routers.openai:generate_chat_completion:724 - 200, message='Attempt to decode JSON with unexpected mimetype: ', url='https://proxyprovider/openai/v1/chat/completions' - {}
The length of the keys is the only thing that distinguishes them, I thought there were some restrictions on the length of the key.

Originally created by @Vladimir-Va on GitHub (Mar 8, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11411 Hello. Are there any restrictions on the length of the API key? On the same Docker Container installation. Two proxy providers compatible with the endpoint of the OpenAI. With a key length of up to 64 characters, they work perfectly. But the third one has a key length of 212 characters, and in the chat I see an error with it: `'str' object has no attribute 'get'` And in server logs: `open_webui.routers.openai:generate_chat_completion:724 - 200, message='Attempt to decode JSON with unexpected mimetype: ', url='https://proxyprovider/openai/v1/chat/completions' - {}` The length of the keys is the only thing that distinguishes them, I thought there were some restrictions on the length of the key.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16219