Commit Graph

189 Commits

Author SHA1 Message Date
melod1n 2b1940bf4d shitton 2026-05-14 21:20:43 +03:00
melod1n c1a913d5e4 shitton 2026-05-14 20:59:57 +03:00
melod1n 363f0cd607 shitton 2026-05-14 20:59:11 +03:00
melod1n 858e3d7990 shitton 2026-05-14 20:58:52 +03:00
melod1n 067bbd0708 shitton 2026-05-14 20:55:48 +03:00
melod1n 78932e82af shitton 2026-05-13 16:07:47 +03:00
melod1n a411c6874a shitton 2026-05-13 14:58:53 +03:00
melod1n bd548a9f43 shitton 2026-05-13 13:36:51 +03:00
melod1n 674c3cbd44 shitton 2026-05-13 12:05:55 +03:00
melod1n c5b61ee3d8 shitton 2026-05-13 10:18:54 +03:00
melod1n cd8d2683c0 shitton 2026-05-13 05:10:51 +03:00
melod1n 3848dd82d9 feat(ai): improve runtime capability reporting and context settings
Add explicit chat capability tracking, expose formatted runtime capabilities
in the info command, and support a max context size option for user AI settings.

Also update Ollama base URL resolution to use OLLAMA_ADDRESS and simplify
provider chat command execution.
2026-05-11 02:01:44 +03:00
melod1n d2464b9b21 app: wire new commands and update docs 2026-05-10 22:53:43 +03:00
melod1n 94d695e008 commands: localize generic bot commands 2026-05-10 22:53:32 +03:00
melod1n 3d14e3c0d5 commands: switch AI commands to unified runtime 2026-05-10 22:53:22 +03:00
melod1n 1b94760b21 ai: add RAG, speech-to-text and text-to-speech 2026-05-10 22:53:07 +03:00
melod1n 355ae8e5da ai: add common tool runtime and built-in tools 2026-05-10 22:52:48 +03:00
melod1n 32c35f54aa ai: add unified runtime and provider adapters 2026-05-10 22:52:35 +03:00
melod1n 4c2a5471df utils: add shared locks, queues, rendering and message helpers 2026-05-10 22:52:25 +03:00
melod1n d666244863 storage: persist message attachments and user AI settings 2026-05-10 22:52:10 +03:00
melod1n 28f67aefc2 config: add env schema and localization foundation 2026-05-10 22:51:52 +03:00
melod1n 986d4aca46 build: update dependencies and project config 2026-05-10 22:50:04 +03:00
melod1n 35354a86de refactor: centralize runtime config loading
- Move .env parsing and runtime config reload logic into Environment
- Reload runtime config and system prompt when source files change
- Gate unsafe eval and file tools behind explicit environment flags
- Rename datetime tool to get_datetime and improve tool prompts
- Return structured weather tool responses
- Preserve assistant thinking and aggregate tool calls across stream chunks
2026-05-03 19:45:18 +03:00
melod1n 2fc60806ff feat(ollama): add tool calling support
Add Ollama tool integration for web search, weather, datetime, filesystem operations, and shell evaluation. Implement multi-round tool call handling, streaming updates, thinking cleanup, and safer path validation for file tools.

Also add related environment configuration, command execution helper, MarkdownV2 cancel handling fixes, and remove unused TryAgain callback command.
2026-05-03 15:16:14 +03:00
melod1n 86b26813e2 update tsconfig.build.json 2026-05-01 07:11:10 +03:00
melod1n ca7caf7a51 update tsconfig.build.json 2026-05-01 07:08:57 +03:00
melod1n 13b41c3026 bump libs
migrate to typescript 6
remove ytdl feature
2026-05-01 07:05:17 +03:00
melod1n ac51702f00 update @mistralai lib 2026-05-01 05:35:37 +03:00
melod1n 0a34e15a22 fix gemini image analyze text 2026-05-01 05:27:03 +03:00
melod1n c24bc8394b fix 2026-05-01 05:18:39 +03:00
melod1n 0f91e43ea0 feat: add Ollama audio transcription and runtime config reload
- add audio capability reporting for Ollama models
- support Telegram voice messages via ffmpeg conversion and Ollama transcription
- add USE_SYSTEM_PROMPT toggle and runtime reloading of .env/system prompt settings
- support ollama_options.json for custom Ollama request options
- improve Telegram MarkdownV2 escaping and formatting preservation
- add environment setters for AI provider credentials and models
- show audio capability in info/model commands
2026-05-01 05:09:10 +03:00
melod1n 382e00ce31 bump libs 2026-05-01 04:54:11 +03:00
melod1n d95c37a322 improvements 2026-04-29 19:54:55 +03:00
melod1n a7fcb8074c improvements, fixes 2026-04-29 19:48:38 +03:00
melod1n c003d443e3 temp disable prefix requirement for AI reply 2026-04-29 19:24:31 +03:00
melod1n 874f312465 temp disable prefix requirement for AI reply 2026-04-29 19:19:50 +03:00
melod1n d41a4ed3ea improve replies, formatting and system prompt handling 2026-04-29 19:13:28 +03:00
melod1n 27ca75ed7c update export db command 2026-04-29 06:49:56 +03:00
melod1n cbf5392ffa fix bump libs 2026-04-29 06:46:43 +03:00
melod1n 8822e8f46a export db command 2026-04-29 06:45:00 +03:00
melod1n 8a3c6d40a9 bump libs 2026-04-29 06:44:44 +03:00
melod1n 860182d409 add policies for future 2026-03-18 13:44:19 +03:00
melod1n e21c786e71 add todo 2026-03-18 13:44:03 +03:00
melod1n 126bebb40b add "imgen" option to OpenAiGenImage command 2026-03-18 13:43:56 +03:00
melod1n d77b33514c bump libs 2026-03-18 13:43:35 +03:00
melod1n 3700f61393 add /admins command 2026-03-18 13:43:28 +03:00
melod1n bfb6fe33db error handling 2026-03-03 00:34:07 +03:00
melod1n 18b7a2082b updates 2026-03-03 00:29:03 +03:00
melod1n 6a8dbed691 update text 2026-03-03 00:22:20 +03:00
melod1n 07a6dde0b8 fix typo 2026-03-03 00:05:43 +03:00