Commit Graph

80 Commits

Author SHA1 Message Date
ned
415fb297c8 minor improvements 2023-03-18 00:12:44 +01:00
dkvdm
8f89c032ec Adding the ability to ignore transcribing group chats 2023-03-17 13:30:38 -07:00
ned
c11c1516e3 minor improvements 2023-03-17 20:47:23 +01:00
ned
3ad2019b24 Merge branch 'main' into user-budgets 2023-03-17 20:30:43 +01:00
ned
4da4beffbf Merge pull request #66 from AlexHTW/fix-current-usage-date-issue
Bugfix: wrong stats counts when bot is running for multiple days
2023-03-17 20:16:09 +01:00
AlexHTW
1229486494 removed parameter date=today from stats getters 2023-04-17 11:43:35 +02:00
k3it
12dc80e6ce more selective filter for transribe request 2023-03-15 19:50:47 +00:00
AlexHTW
c7b525f5b3 improved some naming 2023-03-15 10:00:44 +01:00
k3it
40d9bb196e fix n_choices default value, fix cost dollar formating 2023-03-15 02:20:23 +00:00
k3it
1c91989cac Merge branch 'attachment-updates' 2023-03-15 01:57:23 +00:00
k3it
51e27339c2 do not send images to transcribe 2023-03-15 01:53:56 +00:00
Alexander Hinzer
d9f49440c2 Merge branch 'n3d1117:main' into user-budgets 2023-03-15 01:18:03 +01:00
AlexHTW
60d1dba0a5 added guest budget for group chats 2023-03-15 01:13:46 +01:00
ned
2af8873f3d minor improvements to group chat trigger keyword 2023-03-14 19:29:25 +01:00
ned
edc5feb82d Merge branch 'main' into main 2023-03-14 19:04:39 +01:00
AlexHTW
70927c154a added user budgets 2023-03-14 14:44:30 +01:00
Ethan Lau
35f3cfe1e8 add group_trigger_keyword 2023-03-14 10:55:03 +08:00
AlexHTW
954aa5c15d added tracking for transcription requests
added total cost return
finalized /stats command
2023-03-14 02:48:12 +01:00
AlexHTW
a2fa5b3e6a added tracking of image requests and cost 2023-03-14 01:31:25 +01:00
AlexHTW
26ec10b404 improved usage data structure, refactoring 2023-03-14 00:06:27 +01:00
AlexHTW
f21c4b429e fixed mistakes from rebase :/ 2023-03-12 01:56:12 +01:00
AlexHTW
896b09feb7 refactored token_usage to general usage_tracker class that allows for implementation of audio and image usage tracking 2023-03-12 01:23:35 +01:00
AlexHTW
48d303b775 added BotCommand for requesting usage statistics and token cost
updated README with new features

removed unecessary logging
2023-03-12 01:20:38 +01:00
AlexHTW
0776e2299e added tracking for token usage per user 2023-03-12 01:17:21 +01:00
k3it
ad8b136c4e attempt to extract audio from the attachments, even when not
detected by telegram as a media file (e.g. some types of mp4)
2023-03-11 20:28:40 +00:00
ned
905f587bdf minor improvements 2023-03-11 11:05:13 +01:00
k3it
39aacc1d7d Transcribe support for video messages and additional audio formats. 2023-03-11 03:39:09 +00:00
ned
2331a47924 added bot commands (fixes #47) 2023-03-09 12:17:37 +01:00
ned
c4e902b770 remove quotes in transcript answer 2023-03-06 16:14:41 +01:00
ned
b7d2aaae78 clearer output when answering voice messages (#40) 2023-03-06 16:10:43 +01:00
ned
8fab052411 added option to reply to voice messages directly with the chatgpt response of the transcript 2023-03-06 14:00:07 +01:00
ned
d6848b5868 added support for inline query in groups 2023-03-06 13:42:37 +01:00
k3it
60e9cd2bb1 Add support for group chats 2023-03-05 23:50:55 +00:00
ned
ed5d8bf384 simplify error logging 2023-03-05 20:15:10 +01:00
ned
f13b8b0f57 send exception errors to result text 2023-03-05 20:12:49 +01:00
ned
c164f0a98b Merge branch 'feature/transcribe-audio-messages' 2023-03-04 18:25:32 +01:00
ned
8fe0c3068f [exp] transcribe audio messages (requires ffmpeg) 2023-03-04 17:34:04 +01:00
ned
bbfad4f04e minor improvements 2023-03-03 10:38:26 +01:00
ROrdo
223e10ff48 Re-support proxy 2023-03-03 12:15:34 +08:00
ned
3b84bfe612 image reply to specific message 2023-03-03 00:32:19 +01:00
ned
cc2b45357e Merge branch 'main' into experimental
# Conflicts:
#	telegram_bot.py
2023-03-02 23:54:38 +01:00
ned
e2c2426bf2 use the /image command 2023-03-02 23:54:13 +01:00
ned
537cf44cb0 handle the /start command 2023-03-02 23:41:27 +01:00
ned
ed83682617 dalle image generation 2023-03-02 23:05:19 +01:00
ned
6a1b9c4cec multi-chat support 2023-03-02 21:58:41 +01:00
ned
1ebd91cc80 added customizable initial assistant prompt 2023-03-02 17:53:57 +01:00
ned
e0f2f86696 update to the official openai APIs! 2023-03-02 16:05:21 +01:00
ned
f173450788 added warning 2022-12-12 23:33:13 +01:00
ned
790cd7854a yield control after canceling task 2022-12-11 22:12:58 +01:00
ned
f5d759230a disable logging some common errors 2022-12-11 17:31:30 +01:00