Alexey Skobkin
541c1d3bbf
Storing /summarize replies in history too ( #32 ).
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
61b3bd00c3
Merge pull request 'Raising the limit of history container size' ( #31 ) from skobkin-patch-1-history-limit into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #31
2024-10-30 16:13:24 +00:00
Alexey Skobkin
40b20b1b50
Raising the limit of history container size
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-10-30 16:12:39 +00:00
Alexey Skobkin
519b4f40bb
Merge pull request 'Chat history tweaks, handlers priority fix, system prompt clarification' ( #28 ) from feature_chat_history into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #28
2024-10-27 23:06:45 +00:00
Alexey Skobkin
de5165f5ec
Presenting chat history as 'system' messages. Presenting bot replies as 'assistant' messages. Tweaking system prompt.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-10-28 02:04:35 +03:00
Alexey Skobkin
edf2158d29
Fixing handlers priority.
2024-10-28 01:55:17 +03:00
Alexey Skobkin
5d616dd31e
Merge pull request 'Adding in-memory chat history support, removing inline queries and some tweaks' ( #27 ) from feature_chat_history into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #27
2024-10-27 21:38:51 +00: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.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-10-28 00:35:35 +03:00
Alexey Skobkin
8326333bcf
REAMDE.md fix ( #25 )
...
continuous-integration/drone/push Build is passing
REAMDE.md fix
Co-authored-by: Alexey Skobkin <skobkin-ru@ya.ru>
Reviewed-on: #25
2024-08-16 00:59:04 +00:00
Alexey Skobkin
f28670834d
Model configuration and small prompt improvements ( #24 )
...
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
82c4d953d4
Merge pull request 'Rolling back summarizing to Mistral' ( #23 ) from change-summarize-model-mistral into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #23
2024-05-06 00:29:55 +00:00
Alexey Skobkin
d65f61db82
Rolling back summarizing to Mistral
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 )
...
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
db92c01131
Merge pull request 'URL scheme whitelist and Inline Queries.' ( #21 ) from fix_chat_type_middleware_nil_pointer into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #21
2024-03-12 22:20:06 +00:00
Alexey Skobkin
7bb5c65d59
Closes #14 . Adding inline queries. Also small refactoring of context prompt based on RequestContext.
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
993c71ca71
Merge pull request 'Fixing a bunch of bugs and making some improvements' ( #19 ) from fix_chat_type_middleware_nil_pointer into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #19
2024-03-12 20:08:50 +00:00
Alexey Skobkin
3fa7c2434f
Fix #17 . Implementing slog-based logger for telego and passing it into the library.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-12 23:05:52 +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
38fcd1a5a9
Adding API URL suffix to the README.md.
2024-03-12 22:13:32 +03:00
Alexey Skobkin
bfacbb9f98
Tweaking summarizer prompt a bit.
2024-03-12 22:12:58 +03:00
Alexey Skobkin
a2a37d0256
Trying to fix #13 . Adding logging to the middleware.
2024-03-12 22:10:34 +03:00
Alexey Skobkin
5f55cec0e2
fix #15 slog usage. Also adding more logging.
2024-03-12 22:07:22 +03:00
Alexey Skobkin
ec56188332
Merge pull request 'Request context prompt fixes and improvements.' ( #12 ) from fix_context_prompt into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #12
2024-03-12 03:48:33 +00:00
Alexey Skobkin
71dad1bda8
Request context prompt fixes and improvements.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-12 06:47:48 +03:00
Alexey Skobkin
7f074c16b5
Merge pull request 'Request context prompt fixes and improvements.' ( #11 ) from fix_context_prompt into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #11
2024-03-12 03:32:01 +00:00
Alexey Skobkin
19da4c6b34
Request context prompt fixes and improvements.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-12 06:31:07 +03:00
Alexey Skobkin
a1debf7908
Merge pull request 'Request contexts and some logging changes.' ( #10 ) from fix_logging into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #10
2024-03-12 03:15:55 +00:00
Alexey Skobkin
dc5ad2c580
Implementing request context and adding it to /hey command processing.
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
5035a73884
Merge pull request 'Fixing private requests counter.' ( #8 ) from feature_4_configuration into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #8
2024-03-11 20:25:35 +00:00
Alexey Skobkin
fe5db2b06f
Fixing private requests counter.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-11 23:24:46 +03:00
Alexey Skobkin
5dea0a7522
Merge pull request 'Implementing simple stats counter (fix).' ( #7 ) from feature_4_configuration into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #7
2024-03-11 20:19:53 +00:00
Alexey Skobkin
eecb5aa09b
Implementing simple stats counter (fix).
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-11 23:19:05 +03:00
Alexey Skobkin
48e51f3851
Merge pull request 'Implementing simple stats counter' ( #6 ) from feature_4_configuration into main
...
continuous-integration/drone/push Build is passing
Reviewed-on: #6
2024-03-11 20:17:14 +00:00
Alexey Skobkin
2ed9c2f6dc
Implementing simple stats counter.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-11 23:15:27 +03:00
Alexey Skobkin
2272570377
Also changing image tag for build step.
continuous-integration/drone/push Build is passing
2024-03-10 05:57:59 +03:00
Alexey Skobkin
f775c1257e
Changing build image to Alpine to avoid linking errors.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-03-10 05:55:28 +03:00
Alexey Skobkin
55b44d3207
Making build and publish run in the same pipeline.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-03-10 05:36:44 +03:00
Alexey Skobkin
0bfd307c4c
Making build and publish run in the same pipeline.
continuous-integration/drone/push Build is passing
2024-03-10 05:31:55 +03:00
Alexey Skobkin
dd6a3a53dd
Removing branch condition from Docker image build step.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-03-10 05:28:38 +03:00
Alexey Skobkin
11d12c5858
Merge pull request 'Building Docker image in CI and README.md update' ( #1 ) from feature_docker into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #1
2024-03-10 02:21:58 +00:00
Alexey Skobkin
b20c248fd9
Adding Dockerfile and adding image building to the Drone pipeline. Also adding running instructions to the README.md.
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-03-10 05:19:50 +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.
continuous-integration/drone/push Build is passing
2024-03-10 04:51:01 +03:00
Alexey Skobkin
971ac147ac
VERY SIMPLE Drone pipeline.
continuous-integration/drone/push Build is passing
2024-03-08 05:28:09 +03:00
Alexey Skobkin
7c7307ca87
VERY SIMPLE Drone pipeline.
2024-03-08 05:26:27 +03:00