8 Commits

Author SHA1 Message Date
hllywluis a2fdf73f8a Add current date to system prompt (March 9, 2026)
Deploy to NAS / deploy (push) Successful in 58s
2026-03-09 16:52:23 -04:00
hllywluis 7ff95a3d7f Add Brave Search as primary web search with NanoGPT fallback
Deploy to NAS / deploy (push) Has been cancelled
- Brave Search API is now primary (if BRAVE_API_KEY set)
- NanoGPT web search is fallback if Brave fails
- Add BRAVE_API_KEY to .env, docker-compose, and deploy workflow
- Tool calling still works for AI to request searches
2026-03-09 16:51:43 -04:00
hllywluis a73a8901f2 Replace keyword detection with proper tool calling for web search
Deploy to NAS / deploy (push) Successful in 1m11s
- Define web_search function that AI can call when needed
- AI decides autonomously when to search (no keyword matching)
- Tool calling via NanoGPT API with function definitions
- Format search results with sources for citations
2026-03-09 16:43:08 -04:00
hllywluis b1fff6f337 Add automatic web search for current events queries
Deploy to NAS / deploy (push) Successful in 1m8s
- Detect keywords like 'latest', 'news', 'current', '2026' etc
- Append :online suffix to model for web search + AI response
- Retry logic: if web search fails, fall back to regular response
- Increased timeout to 90s for web search queries
- Fixed typo in fallback error handling
2026-03-09 16:40:13 -04:00
hllywluis 8b1ece727d Fix fallback API URL and clean up message formatting in AI response functions
Deploy to NAS / deploy (push) Successful in 59s
2026-03-09 13:50:53 -04:00
hllywluis 9dfdef46d5 Add z.ai fallback provider for AI responses
Deploy to NAS / deploy (push) Has been cancelled
- Try NanoGPT first, fall back to z.ai GLM-4.7-Flash on failure
- Add ZAI_API_KEY environment variable
- Update deploy workflow with new secret
2026-03-09 13:42:59 -04:00
hllywluis e5ebb203fa Increase NanoGPT timeout to 60s
Deploy to NAS / deploy (push) Successful in 59s
2026-03-09 13:01:18 -04:00
hllywluis a7a6c1e321 Add sassy AI personality with mention detection
Deploy to NAS / deploy (push) Successful in 1m55s
- Add utils/ai.js with NanoGPT integration for GLM-4.5-Air model
- Sassy system prompt: lowercase, slang, no emoji, opinionated gamer
- Conversation history per channel for context
- Update bot.js with messageCreate event for @mention responses
- Add NANO_MODEL env var for model selection
2026-03-09 12:37:45 -04:00