Commit Graph

59 Commits

Author SHA1 Message Date
AlexHTW
47babe8529 improved consistency in text localizations 2023-04-13 18:03:42 +02:00
AlexHTW
acf500e92d added translations for messages from openai_helper 2023-04-13 16:11:21 +02:00
AlexHTW
df1d405b58 refactored language to bot_language
"language" seems to be reserved on some systems for
the actual system language
2023-04-13 02:14:11 +02:00
AlexHTW
ab29487b8d added language setting to env.example and readme 2023-04-12 01:02:10 +02:00
AlexHTW
0130faaf27 added german and russian translations for bot msgs 2023-04-12 00:52:39 +02:00
ned
35865021ea Merge pull request #178 from AlexHTW/add-budget-types
Add budget periods and improvements
2023-04-10 17:13:02 +02:00
ned
9c75bb6e32 Merge pull request #189 from n3d1117/feature/group-chat-command
Added `chat` commands to initiate chat in groups
2023-04-06 17:46:13 +02:00
ned
3592fa0a9d added chat commands to initiate chat in groups 2023-04-06 16:24:56 +02:00
Joker_
901a1ed99a Ignore empty value when validating user IDs 2023-04-06 15:11:17 +02:00
ned
8de8b1037c Use a unique id for inline queries (fix #181) 2023-04-06 15:10:03 +02:00
Joker_
9c4c2e7c82 Ignore empty value when validating user IDs 2023-04-06 12:36:03 +08:00
AlexHTW
42a1e7120a linked budget manual in README 2023-04-05 15:40:55 +02:00
AlexHTW
373f6ba872 refactored budget_type to budget_period
added descriptions to README
2023-04-04 16:40:41 +02:00
ned
7881921345 Use a unique id for inline queries (fix #181) 2023-04-04 15:24:53 +02:00
AlexHTW
4fcf0e05d5 improved naming of budget 2023-04-04 02:45:27 +02:00
AlexHTW
0f24f66783 added budget type handling to stats
improved readibility of transcribe_durations
removed duplicate "no admin defined" logging
2023-04-04 01:18:13 +02:00
AlexHTW
5609c62de2 refactored budget checking to support budget types
improved logic and redundancies
2023-04-04 01:15:32 +02:00
Alexander Hinzer
af7e35bb69 improved get_current_cost() 2023-04-04 01:13:05 +02:00
ned
ae9243a6c4 add option to disable quoting in private chats 2023-04-03 19:50:08 +02:00
ned
fb17a5d86e remove failing credit_grants API call (fix #163) 2023-04-02 11:05:47 +02:00
ned
7cba39d1f9 allow disabling image generation and transcriptions (#129) 2023-04-01 10:45:52 +02:00
ned
5062280140 made group trigger keyword case insensitive
fix #140
2023-04-01 10:19:08 +02:00
ned
b47768b66f fix #151 for messages containing broken markdown 2023-03-31 12:50:04 +02:00
ned
bd149d9c4a minor improvements 2023-03-31 12:44:02 +02:00
Alexander Hinzer
db0fcfce7b fixed is_user_in_group 2023-03-31 00:53:15 +02:00
Alexander Hinzer
3d79dcfb3d added check of admin list to group permission 2023-03-31 00:17:24 +02:00
ned
60cf806c44 minor improvements 2023-03-29 10:47:48 +02:00
ned
fec6694bb7 Merge pull request #89 from VolunPotest/main
New resend command
2023-03-29 10:43:27 +02:00
VolunPotest
0aaa7a46fb pop message from self.last_message 2023-03-28 22:02:53 +02:00
VolunPotest
01638d3756 Add resend command 2023-03-28 21:57:51 +02:00
Alexander Hinzer
bddf84e469 added user id to all logs 2023-03-28 21:23:17 +02:00
ned
77a500a1ff some refactoring 2023-03-28 12:59:19 +02:00
ned
bd4fe58551 initial support for continuous chat indicators 2023-03-28 10:44:34 +02:00
ned
f55ff46a6c handle exceptions with markdown 2023-03-27 17:22:05 +02:00
ned
f8f3c229c3 minor improvements 2023-03-27 17:14:50 +02:00
Joker
c7c836c12e Trim all bot commands from message text 2023-03-27 22:23:21 +08:00
ned
e4ea02ae23 minor improvements 2023-03-27 11:32:21 +02:00
ned
bc6a4e48f0 handle streaming responses over 4096 characters 2023-03-27 00:46:19 +02:00
ned
ff188ce1c2 lower stream latency and added some backoff 2023-03-26 15:58:11 +02:00
ned
50647ffdc0 also handle generic error while streaming response 2023-03-26 13:04:16 +02:00
ned
789d6cd0bc made is_admin not async 2023-03-26 12:46:46 +02:00
ned
1a87a44421 Merge pull request #103 from AlexHTW/add-balance-function
Add balance functions to stats command
2023-03-26 12:46:05 +02:00
ned
1841bb58fc do not fail if total_tokens is not set 2023-03-26 12:28:38 +02:00
ned
26322b7bd9 initial stream message replies to original message 2023-03-25 19:47:59 +01:00
ned
99d98d2048 initial stream support 2023-03-25 19:36:56 +01:00
ned
1a28b6b683 minor improvements 2023-03-25 14:53:00 +01:00
AlexHTW
be35c811c9 added admin_user_ids variable to env
updated functions accordingly
improved (?) stats output look
2023-03-25 00:12:14 +01:00
AlexHTW
29ecd1723c removed balance from botcommands 2023-03-23 01:08:28 +01:00
AlexHTW
57edb16000 added grant balance and openAI usage to stats 2023-03-23 00:56:02 +01:00
AlexHTW
3b2fabd188 added functions is_admin and get_remaining_budget 2023-03-23 00:37:31 +01:00