25 lines
668 B
Markdown
25 lines
668 B
Markdown
# SearXNG Gemini Stream
|
|
|
|
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) Defaults to `gemini-3-flash-preview`.
|
|
- `GEMINI_MAX_TOKENS`: (Optional) Defaults to `500`.
|
|
- `GEMINI_TEMPERATURE`: (Optional) Defaults to `0.2`.
|
|
|
|
### settings.yml
|
|
Add this to your SearXNG configuration file to enable the plugin:
|
|
|
|
```yaml
|
|
plugins:
|
|
- name: gemini_flash
|
|
active: true
|
|
```
|
|
|
|
## Installation
|
|
|
|
Place `gemini_flash.py` into the `searx/plugins` directory of your instance.
|