Files
SC-Discord-Bot/discord_connector/example.config.yml
Pakobbix 16be4a9ab5 Improve streaming response and add system prompt support
- Add configurable initial streaming message
- Support system prompt in API requests
- Fix config key typo (open-webui -> open_webui)
- Add validation for required config values
- Improve error handling for network and API errors
- Set proper timeout for API requests (900s)
- Better logging for rate limit errors
2026-03-10 21:02:41 +01:00

27 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ─────────── Discord Settings ───────────
discord_token: "YOUR_DISCORD_BOT_TOKEN_HERE"
whitelist_channels:
- 123456789123456789 # <-- channel id
- 987654321987654321 # <-- another channel id
allow_dms: false # set to true if you want the bot to answer private DMs (Currently not working)
# ─────────── OpenWebUI Settings ───────────
open_webui_url: "http://your_open-webui_ip_or_domain:port"
open_webui_api_key: "user_api_key_from_open_webui"
model_name: "model_id_from_open-webui"
knowledge_base: "knowledge_base_id_from_open-webui"
# tools map label → toolid that your OpenWebUI instance recognises
tools:
- Tool_ID_1
- Tool_ID_2
use_streaming: true # Allows to stream the answer to feel more interactive.
streaming_initial_message: "Bitte warte kurz, die Informationen werden gesammelt..."
# optional system prompt (you can leave it empty to use the default one or the systemprompt given in open-webui for the specific model)
system_prompt: ""