290126a99bfd1be91c9776240b887cf945217d72
SearXNG Gemini & OpenRouter Stream
A SearXNG plugin that streams AI responses using search results as grounding context. Supports Google Gemini and OpenAI-compatible providers (OpenRouter, Ollama, etc.).
Configuration
Set the following environment variables:
General
LLM_PROVIDER:openrouter(default) orgemini.GEMINI_MAX_TOKENS: Defaults to500.GEMINI_TEMPERATURE: Defaults to0.2.
Google Gemini
GEMINI_API_KEY: Your Google AI API key.GEMINI_MODEL: Defaults togemma-3-27b-it.
OpenRouter / OpenAI / Ollama
OPENROUTER_API_KEY: Your API key.OPENROUTER_MODEL: Defaults togoogle/gemma-3-27b-it:free.OPENROUTER_BASE_URL: Defaults toopenrouter.ai. (Change tolocalhost:11434for Ollama).
Installation
Place gemini_flash.py into the searx/plugins directory of your instance and enable it in settings.yml.
Description
A SearXNG plugin that generates local AI overviews powered by Ollama, using search results as RAG context.
Languages
Python
100%