Alexey Skobkin
6d5563c6d4
Making banner smaller. ( #47 )
...
continuous-integration/drone/push Build is passing
Co-authored-by: Alexey Skobkin <skobkin-ru@ya.ru>
Reviewed-on: #47
2024-11-22 13:11:50 +00:00
Alexey Skobkin
99ff78a9f2
Adding banner and logo. ( #46 )
...
continuous-integration/drone/push Build is passing
Reviewed-on: #46
Co-authored-by: skobkin <skobkin@proton.me>
Co-committed-by: skobkin <skobkin@proton.me>
2024-11-22 13:07:37 +00:00
Alexey Skobkin
a49ce5ab28
Using local search to check model existence ( fixes #42 ).
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-11-06 19:39:21 +03:00
Alexey Skobkin
3406bc2601
Updating github.com/sashabaranov/go-openai dependency.
2024-11-06 17:57:56 +03:00
Alexey Skobkin
c33eb3fe35
Updating github.com/mymmrac/telego dependency.
2024-11-06 17:56:33 +03:00
Alexey Skobkin
7d9d08fbff
Merge pull request 'Fixing user request representation in the LLM request context ( #40 )' ( #41 ) from fix_quoted_messages_usernames_context into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #41
2024-11-03 23:25:11 +00:00
Alexey Skobkin
5280fe8a2e
Fixing user request representation in the LLM request context ( #40 ).
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-11-04 02:24:00 +03:00
Alexey Skobkin
b4b0f7baba
Context prompt format fix.
2024-11-04 02:10:57 +03:00
Alexey Skobkin
e6351725e3
Merge pull request 'nil pointer dereference fix ( #37 )' ( #38 ) from fix_quoted_messages_usernames_context into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #38
2024-11-03 22:43:05 +00:00
Alexey Skobkin
c3ee85bf35
nil pointer dereference fix ( #37 )
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-11-04 01:41:08 +03:00
Alexey Skobkin
c2a30464d1
Merge pull request 'Chat history and context improvements' ( #35 ) from fix_quoted_messages_usernames_context into main
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #35
2024-11-03 22:28:39 +00:00
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