Upgrade fortune, ask, and trivia commands to use Ollama LLM
fortune: generates a fresh witty one-liner via Ollama on every call, falls back to static list if LLM is unavailable. ask: switched to /api/chat endpoint with a system prompt for better conversational quality; now uses ASK_MODEL (default: gemma3:latest) separately from the 8ball OLLAMA_MODEL so each can be tuned independently. trivia: LLM generates a fresh question each time (no more repeating the same 25 questions); supports !trivia <category> with six categories (gaming, tech, general, movies, music, science); falls back to static questions if JSON generation fails. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@ LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
|
||||
# Integrations
|
||||
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://10.10.10.157:11434")
|
||||
OLLAMA_MODEL = os.getenv("OLLAMA_MODEL", "lotusllm")
|
||||
ASK_MODEL = os.getenv("ASK_MODEL", "gemma3:latest")
|
||||
MINECRAFT_RCON_HOST = os.getenv("MINECRAFT_RCON_HOST", "10.10.10.67")
|
||||
MINECRAFT_RCON_PORT = int(os.getenv("MINECRAFT_RCON_PORT", "25575"))
|
||||
MINECRAFT_RCON_PASSWORD = os.getenv("MINECRAFT_RCON_PASSWORD", "")
|
||||
|
||||
Reference in New Issue
Block a user