Commit Graph

13 Commits

Author SHA1 Message Date
melod1n a3f19f0413 Fix startup schema migration deadlock 2026-05-19 17:58:09 +03:00
melod1n 8aede4b053 Add unified request pipeline stages 2026-05-18 15:45:39 +03:00
melod1n 8cff086a8e shitton of the ai changes 2026-05-18 13:31:37 +03:00
melod1n d41a4ed3ea improve replies, formatting and system prompt handling 2026-04-29 19:13:28 +03:00
melod1n b74e0a0f3e refactor(bot): centralize runtime state; support albums + safer vision handling
- make MessageStore.put() return StoredMessage and allow collectReplyChainText() to work with StoredMessage
- move muted users + answers loading into Environment (add Answers model + GEMINI_IMAGE_MODEL)
- extract message handling into processNewMessage() and add media-group (album) caching/downloading by unique_file_id
- for Ollama: check model capabilities before sending images; use replyToMessage helper consistently
- add /geminiGenImage command stub for Gemini image generation
2026-01-29 20:01:30 +03:00
melod1n 12d9591109 some improvements for prompt making 2026-01-28 17:59:53 +03:00
melod1n 63c64dfa8e update error logging
cutting all kind of prefixes for prompt making
2026-01-28 16:40:29 +03:00
melod1n 32baaebb93 update regex matching - now bot responds only for base commands (like /ping) and with mention (like /ping@panfilovi4_bot) and ignores command if it mentions other bot;
Add ability to see, change and list gemini, mistral and ollama models
2026-01-20 08:31:05 +03:00
melod1n 8fbc8e43db update schema 2026-01-12 19:37:45 +03:00
melod1n dd38abc9b0 fix schema 2026-01-12 19:28:01 +03:00
melod1n 6eff5d17ea test support for images (ollama vision models) 2026-01-12 19:19:08 +03:00
melod1n f14d996372 update database-manager.ts 2026-01-12 16:18:27 +03:00
melod1n df9471a7e4 refactor!: rewrite bot core; add AI (Ollama, Gemini), DB, new commands 2026-01-12 15:32:50 +03:00