Commit graph

19 commits

Author SHA1 Message Date
Alexey Skobkin 541c1d3bbf
Storing /summarize replies in history too (). 2024-11-04 01:24:40 +03:00
Alexey Skobkin a783a84faa
Renaming MessageRingBuffer to MessageHistory (). 2024-11-04 01:18:50 +03:00
Alexey Skobkin 093372dd91
Adding usernames to the message context (). Adding text of reply-quoted message to the context (). Refactoring context creation and presentation. 2024-11-04 01:18:42 +03:00
Alexey Skobkin edf2158d29
Fixing handlers priority. 2024-10-28 01:55:17 +03:00
Alexey Skobkin 1f9583cb29
Adding in-memory chat history support. Removing inline queries. Refactoring stats and message processing a bit. Also changing LLM request context building a bit. Also adding alias for summarization and some other small changes. 2024-10-28 00:35:35 +03:00
Alexey Skobkin f28670834d Model configuration and small prompt improvements ()
- Model can be configured using ENV
- Summarization prompt improved
- Single text request prompt improved
- Chat context prompt improved

Co-authored-by: Alexey Skobkin <skobkin-ru@ya.ru>
Reviewed-on: 
2024-08-16 00:47:07 +00:00
Alexey Skobkin d65f61db82 Rolling back summarizing to Mistral 2024-05-06 00:28:41 +00:00
Alexey Skobkin c4665338db Changing default model to LLaMa3 ()
Changing default model to LLaMa3

Reviewed-on: 
2024-05-06 00:15:36 +00:00
Alexey Skobkin 7bb5c65d59
Closes . Adding inline queries. Also small refactoring of context prompt based on RequestContext. 2024-03-13 01:18:01 +03:00
Alexey Skobkin ca005a9370
Extracting request context creation to separate file. 2024-03-13 00:32:52 +03:00
Alexey Skobkin d890faf461
Fix disallowing any URL except http:// and https://. Extracting helper methods to separate file. 2024-03-13 00:32:18 +03:00
Alexey Skobkin d3c0bc28f1
Fix . Escaping underscore symbols to avoid Telegram's Bot API "Markdown" (v1) parser errors. 2024-03-12 23:01:05 +03:00
Alexey Skobkin 5f55cec0e2
fix slog usage. Also adding more logging. 2024-03-12 22:07:22 +03:00
Alexey Skobkin dc5ad2c580
Implementing request context and adding it to /hey command processing. 2024-03-12 06:12:25 +03:00
Alexey Skobkin 1343d0c4f8
Logging 'typing' notification only in Debug level. 2024-03-12 05:14:50 +03:00
Alexey Skobkin 118693d4e4
Trying to send error about failed reply. 2024-03-12 05:14:23 +03:00
Alexey Skobkin eecb5aa09b
Implementing simple stats counter (fix). 2024-03-11 23:19:05 +03:00
Alexey Skobkin 2ed9c2f6dc
Implementing simple stats counter. 2024-03-11 23:15:27 +03:00
Alexey Skobkin 8939b2fb62
Refactoring structure from single file to several separated services. Adding new feature: "summarize" to generate bullet points for provided link. 2024-03-10 04:51:01 +03:00