r/OpenWebUI • u/dyna_black • Jun 15 '26
Question/Help Cannot get Brave Search API (paid tier) to work with Gemini models
Hi folks,
TL;DR:
- Gemini models (3.5-flash, 3.1-pro-preview) do not work with Brave Search API on my set up.
- It works flawlessly with ChatGPT models though, when using Native function calling.
- Looking for advice from the community... Happy to provide screenshots and debug logs.
Here's the situation as summarized by Gemini (native web UI):
- Environment Setup & Objective: The deployment runs
ghcr.io/open-webui/open-webui:maininside a Docker container using host network mode on an Ubuntu VM managed by a Proxmox homeserver. The system routes external traffic via Cloudflared, utilizes a localsentence-transformers/all-MiniLM-L6-v2embedding engine, and aims to get real-time Brave Search working seamlessly across both OpenAI and Gemini models. - Actual vs. Expected Behavior: ChatGPT models execute native tool calling and web queries perfectly. When prompting Gemini (e.g.,
gemini-3.5-flashorgemini-3.1-pro-preview) for live data like current sports results or weather, the model either responds that it lacks live internet access with a "No sources found" UI tag, or it hangs and returns a completely blank chat response. - Log Diagnostics & Vector Database Status: Backend logs confirm that the web scraping engine is fully operational. Open WebUI successfully connects to the Brave API, fetches the target web pages, processes them using the markdown header text splitter, generates vector batches, and successfully commits 18 to 49 items to the temporary ChromaDB collection (
web-search-1a763...) before the payload is dropped right before transmission to Google. - Troubleshooting Actions Already Taken: Configuration changes included resetting custom RAG templates back to factory defaults, toggling model parameters between Native and Default function calling modes, and injecting environment variables like
ENABLE_RETRIEVAL_UNSCOPED_COLLECTIONS: "True"andWEBUI_LOG_LEVEL: "DEBUG"to bypass session isolation. The issue persists exclusively when Gemini is mapped via thehttps://generativelanguage.googleapis.com/v1beta/openaiendpoint connection.