feat: chat UX overhaul — GLM local model, icons, layout modes, instant bubbles

- Add GLM-4.7-Flash as default Ollama model (replaces Mistral)
- Fix WRITE_TIMEOUT (15s→120s) and HTMX timeout (5s→120s) for local LLM
- Auto-warmup model on startup in development mode
- Add /api/chat/status endpoint for model readiness polling
- Show "Initializing AI model..." indicator while model loads
- Add user avatar (mdi:account) on chat messages
- Inject company/project/course sprite icons inline in chat responses
- Replace cramped header icons with 4 icon buttons + tooltips
  (Compact, Side panel, Floating, Full screen)
- Add floating/draggable chat mode with smooth drag support
- Chip questions show user bubble instantly and clear input
- Help modal prefills input instead of auto-sending
- User bubble rendered client-side for immediate feedback
This commit is contained in:
juanatsap
2026-04-09 10:54:23 +01:00
parent d5c90248cc
commit 8e029d1363
6 changed files with 394 additions and 80 deletions
+3 -2
View File
@@ -15,8 +15,9 @@ TEMPLATE_HOT_RELOAD=true
DATA_DIR=data
# Server Timeouts (seconds)
# Write timeout must accommodate local LLM response times (Ollama ~60s for tool-calling queries)
READ_TIMEOUT=15
WRITE_TIMEOUT=15
WRITE_TIMEOUT=120
# Security Configuration
# Allowed origins for API access (comma-separated domains)
@@ -91,7 +92,7 @@ CONTACT_EMAIL=recipient@example.com
#
# Ollama settings (when MODEL_PROVIDER=ollama):
# OLLAMA_HOST=http://localhost:11434
# OLLAMA_MODEL=mistral-small3.2
# OLLAMA_MODEL=glm-4.7-flash
# Production Settings
# Uncomment for production: