mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #21293] issue: OpenAI embeddings ignore AIOHTTP_CLIENT_SESSION_SSL=false (SSL verification always enforced) #34962
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 @Odko on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21293
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.7.2
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When
AIOHTTP_CLIENT_SESSION_SSLis set tofalse, all aiohttp-based connections from Open WebUI --- including OpenAI-compatible embedding requests --- should skip SSL certificate verification. This is the documented behavior and works correctly for model listing, chat completions (inrouters/openai.py), and Ollama embeddings (inretrieval/utils.py).Actual Behavior
OpenAI and Azure OpenAI embedding requests always enforce SSL certificate verification regardless of the
AIOHTTP_CLIENT_SESSION_SSLsetting. Thessl=AIOHTTP_CLIENT_SESSION_SSLparameter is missing from thesession.post()calls inagenerate_openai_batch_embeddingsandagenerate_azure_openai_batch_embeddingsinbackend/open_webui/retrieval/utils.py.Model listing and chat completions to the same HTTPS endpoint work fine because
routers/openai.pycorrectly passesssl=AIOHTTP_CLIENT_SESSION_SSL. Only the embedding code path fails.This was partially addressed in #12906, which added the
sslparameter torouters/openai.py, but the same fix was not applied to the embedding functions inretrieval/utils.py.Steps to Reproduce
Set up an OpenAI-compatible API server with a self-signed HTTPS certificate (e.g., AWS Bedrock Access Gateway with uvicorn
--ssl-keyfile/--ssl-certfile, or any OpenAI-compatible server behind self-signed TLS).Configure Open WebUI with the following environment variables:
Start Open WebUI (v0.7.2). Verify that:
routers/openai.pyrespectsAIOHTTP_CLIENT_SESSION_SSL=false).Upload a document to trigger RAG embedding generation.
Observe the SSL error in the logs --- the embedding request fails even though model listing and chat use the same endpoint successfully.
Logs & Screenshots
Note
ssl:Truein the error --- this confirms theAIOHTTP_CLIENT_SESSION_SSL=falsesetting is not being applied to this code path.Additional Information
No response
@tjbck commented on GitHub (Feb 10, 2026):
Should be addressed in dev.