fix: ensure plugin stays active by returning True in init and update README

This commit is contained in:
cra88y
2026-01-10 19:17:45 -06:00
parent 0e962ab720
commit d736cb304d
2 changed files with 15 additions and 8 deletions
+13 -4
View File
@@ -1,13 +1,22 @@
# SearXNG Gemini Stream Plugin
# SearXNG Gemini Stream
This is a SearXNG plugin that provides live AI search answers using Google Gemini Flash.
A SearXNG plugin that streams an AI response using results as grounding context to an Answer box at the top of results.
## Configuration
Set the following environment variables:
- `GEMINI_API_KEY`: Your Google Gemini API key.
- `GEMINI_MODEL`: (Optional) The model to use, defaults to `gemini-3-flash-preview`.
- `GEMINI_MODEL`: (Optional) Defaults to `gemini-3-flash-preview`.
### settings.yml
Add this to your SearXNG configuration file to enable the plugin:
```yaml
plugins:
- name: gemini_flash
active: true
```
## Installation
This file should be placed in the `searx/plugins` directory of your SearXNG instance or configured as a plugin.
Place `gemini_flash.py` into the `searx/plugins` directory of your instance.