43 Commits

Author SHA1 Message Date
pyranota c017c32800 Fix defaulting 2024-05-23 23:27:27 +02:00
pyranota 752f38b348 Add support for GPT-4o 2024-05-23 17:45:28 +02:00
OlegGoless 6540b28437 fix bug in context 2024-04-16 14:56:04 +02:00
OlegGoless 5e4552e4df delete required text caption with image 2024-04-04 10:22:53 +02:00
OlegGoless e8a1a1fb2e fix 2024-04-02 17:22:58 +02:00
OlegGoless 3b8b0b2a52 vision 2024-04-02 14:43:04 +02:00
Karim Iskakov 61b8dbd0ce Add GPT-4 Turbo 2023-11-15 17:45:57 +03:00
Daniil Okhlopkov ce0c34825f Store Voice temp files in memory and don't convert them 2023-11-02 16:52:35 +03:00
Dichi Al Faridi acd4cab782 Make the DALLe image size configurable (#365) 2023-09-13 13:17:21 +03:00
Karim Iskakov 8f5a020891 Increase OpenAI timeout 2023-08-28 19:07:32 +03:00
Karim Iskakov 0c09f1aaca Add OpenAI API Base to config 2023-08-01 18:41:31 +03:00
Karim Iskakov c77501c3d9 Remove deprecated "use_chatgpt_api" parameter 2023-07-18 13:43:44 +03:00
Flop a4bd06ac9e Allow channels (#312)
Co-authored-by: Flop <flop@loona.app>
2023-06-20 11:52:57 +03:00
TanNhatCMS 8df5e2d24d fix argument of type 'float' is not iterable (#211)
* fix argument of type 'float' is not iterable

fix "argument of type 'float' is not iterable" in show_balance_handle and message_handle

* Update bot.py
2023-06-20 11:50:03 +03:00
maccagnit 533e6705c8 Added GPT-3.5 16K chat functionality (#306) 2023-06-20 11:47:19 +03:00
Karim Iskakov 28e7426c2b Fix HTTPX problem 2023-06-20 11:29:04 +03:00
Karim Iskakov 37e7101273 Fix edited messages in group chats 2023-04-24 04:11:21 -05:00
Karim Iskakov ada0f34e54 🔥 Add 10 new chat modes + Updated chat mode menu with pagination 2023-04-21 14:02:50 +03:00
Karim Iskakov 8657adb463 Fix bot mention in group chat 2023-04-21 05:20:20 -05:00
Karim Iskakov 04d620ef32 Group Chat support (#247)
Based on @clemsau and @Tuarisa code
2023-04-21 13:16:02 +03:00
Megham Garg 85f149c975 Missing self from error handler 2023-04-21 12:46:08 +03:00
Karim Iskakov e421be1634 DALLE 2 2023-04-21 12:37:06 +03:00
Karim Iskakov aa38a1f5c7 Add /cancel command 2023-03-31 13:58:08 +07:00
Karim Iskakov a8cef77330 Add "Three Dots" message 2023-03-29 15:30:34 +07:00
Karim Iskakov 7b6a50998c Remove trailing whitespaces 2023-03-29 14:42:01 +07:00
Karim Iskakov a4b5eb36e1 GPT-4 support 2023-03-22 23:58:48 +03:00
Karim Iskakov 1ba09de2b9 Add message streaming
* Add message streaming
* Update README.md
2023-03-15 19:20:43 +03:00
Dmitry Gordin 2b4d4ad860 Add commands suggestions via set_my_commands api method
* add command suggestions via set_my_commands method

* update README to remove manual instructions for bot menu
2023-03-15 12:55:27 +03:00
Clément Sauvage 76da87bb31 Add support for user ids in config
* Add support for user ids

* Allow both usernames and user ids at the same time
2023-03-14 15:22:06 +03:00
Karim Iskakov 15e4ec513a Separate config for Chat Modes 2023-03-09 14:51:43 +03:00
Karim Iskakov 319d8fc8f4 Handle long messages 2023-03-08 15:50:07 -06:00
Karim Iskakov 0610ea29cd Voice message recognition 2023-03-08 16:49:22 +03:00
Karim Iskakov 3624ee0dc9 Make bot truly async 2023-03-08 04:49:50 -06:00
wedarobi aedb94c0ef Don't reset dialog if already new (#83)
If the /new command was the last interaction, and the following interaction takes place after the timeout, this prevents showing a redundant "starting new dialog" message.
2023-03-05 20:41:45 +03:00
Karim Iskakov ce29dfd044 Finally fixed bug:'NoneType' object is not subscriptable 2023-03-04 11:09:19 -06:00
Karim Iskakov 0779808db3 Add support of ChatGPT API (#70)
Co-authored-by: Karim Iskakov <kar.iskakov@gmail.com>
2023-03-02 21:31:54 +03:00
N0ne1eft d595617312 Update davinci pricing to match OpenAI 2023-02-20 14:52:57 +00:00
Karim Iskakov d4844432c5 Add 📝 Text Improver chat mode 2023-02-17 08:47:14 -06:00
Karim Iskakov 6458ea8ee5 Support long text in error handler 2023-02-17 08:44:54 -06:00
Karim Iskakov f2bc617146 Handle message editing 2023-02-07 14:04:45 -06:00
Karim Iskakov 81066cf0c5 Add telegram import 2023-01-22 12:30:20 -06:00
Karim Iskakov 1681b4bd1c Register user from any handler 2023-01-20 06:27:42 -06:00
Karim Iskakov fdb91a8da6 Move to MongoDB 2023-01-19 14:56:02 -06:00