Feat: Agregar agente Groq con integración RAG

- Nuevo módulo groq_agent.py para consultas a la API de Groq
- Panel de administración en /groq para configurar API key, modelo y prompt
- Comando /rag en Discord y Telegram para consultar el RAG
- Sistema de prompt personalizable guardado en base de datos
- Soporte para variables de entorno en Docker
- Fix: starlette version para evitar bug con Jinja2
This commit is contained in:
2026-03-26 21:23:19 -06:00
parent 48f7a80dc4
commit 8398e988b0
16 changed files with 1073 additions and 41 deletions

View File

@@ -31,3 +31,9 @@ REDIS_HOST=192.168.1.X # IP de tu servidor OMV
REDIS_PORT=6379
REDIS_PASSWORD=translation_redis_secret
REDIS_DB=0
# Configuración de Groq (Agente RAG)
GROQ_API_KEY=
GROQ_MODEL=llama-3.3-70b-versatile
RAG_API_URL=http://localhost:8004
GROQ_SYSTEM_PROMPT=You are a helpful assistant with access to a RAG system that contains knowledge about the game Last War.