API Key length restrictions? #4328

Closed
opened 2025-11-11 15:51:37 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Vladimir-Va on GitHub (Mar 8, 2025).

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). 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#4328