enh: REQUESTS_VERIFY

This commit is contained in:
Timothy Jaeryang Baek
2026-01-01 01:27:07 +04:00
parent 431632d530
commit dfc5dad631
4 changed files with 15 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ from open_webui.retrieval.loaders.youtube import YoutubeLoader
from open_webui.env import (
OFFLINE_MODE,
ENABLE_FORWARD_USER_INFO_HEADERS,
AIOHTTP_CLIENT_SESSION_SSL,
)
from open_webui.config import (
RAG_EMBEDDING_QUERY_PREFIX,
@@ -762,7 +763,10 @@ async def agenerate_ollama_batch_embeddings(
async with aiohttp.ClientSession(trust_env=True) as session:
async with session.post(
f"{url}/api/embed", headers=headers, json=form_data
f"{url}/api/embed",
headers=headers,
json=form_data,
ssl=AIOHTTP_CLIENT_SESSION_SSL,
) as r:
r.raise_for_status()
data = await r.json()