Commit graph

19 commits

Author SHA1 Message Date
Alexey Skobkin 541c1d3bbf
Storing /summarize replies in history too (#32).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-11-04 01:24:40 +03:00
Alexey Skobkin a783a84faa
Renaming MessageRingBuffer to MessageHistory (#30). 2024-11-04 01:18:50 +03:00
Alexey Skobkin 093372dd91
Adding usernames to the message context (#34). Adding text of reply-quoted message to the context (#33). 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
#26 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.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-10-28 00:35:35 +03:00
Alexey Skobkin f28670834d Model configuration and small prompt improvements (#24)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
- 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: #24
2024-08-16 00:47:07 +00:00
Alexey Skobkin d65f61db82 Rolling back summarizing to Mistral
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-05-06 00:28:41 +00:00
Alexey Skobkin c4665338db Changing default model to LLaMa3 (#22)
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
Changing default model to LLaMa3

Reviewed-on: #22
2024-05-06 00:15:36 +00:00
Alexey Skobkin 7bb5c65d59
Closes #14. Adding inline queries. Also small refactoring of context prompt based on RequestContext.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
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 #20 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 #18. 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 #15 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.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
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).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-11 23:19:05 +03:00
Alexey Skobkin 2ed9c2f6dc
Implementing simple stats counter.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
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.
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-10 04:51:01 +03:00