Commit Graph

62 Commits

Author SHA1 Message Date
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
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
ned
010022b0f6 simplify edit message error handling 2022-12-11 17:29:03 +01:00
ned
56beac7465 support live answers, updating as the bot types 2022-12-11 16:03:26 +01:00
ned
d3f3e7b176 update revChatGPT to 0.0.38.1 2022-12-11 13:19:46 +01:00
Antonio Cheong
b44c9fc795 Migrate to asyncChatBot 2022-12-11 12:52:16 +08:00
ned
9c3211e670 send typing action periodically until the response is received
Fixes #12
2022-12-08 13:05:04 +01:00
ned
ec8880dd54 Allow everyone to message the bot by default 2022-12-08 11:02:25 +01:00
ned
8c2163d039 small refactoring 2022-12-08 10:45:05 +01:00
ned
6d1a67a6ce use the async version of revChatGPT 2022-12-08 10:17:49 +01:00
ned
c69a8076ca cleanup 2022-12-07 20:31:14 +01:00
ned
ecfe7bb95f added docstrings 2022-12-07 20:30:44 +01:00
ned
9f11ba1bbc small refactoring 2022-12-07 20:09:07 +01:00
ned
1fcf04b24a remove refresh command
now handled by revChatGpt
2022-12-07 20:08:55 +01:00
ned
4b6efe6d26 update config key names and bump badge version 2022-12-07 16:51:21 +01:00
ned
a11a2aa666 update help command to include /refresh 2022-12-07 16:03:13 +01:00
ned
58be277355 readded command handler to refresh session (#5) 2022-12-07 15:55:10 +01:00
ned
77ab1d4f2d disable web page preview 2022-12-07 11:45:28 +01:00
ned
7f5deaefdb added disallowed message and removeed refresh command 2022-12-07 11:40:30 +01:00
ned
d73f09b5bf bump dependencies 2022-12-07 10:51:42 +01:00