In this update I tried to optimize and improve all the functionality of the bot, as well as unload heavy functions and divide all tasks into small functions.
I also began to study and design the Discord Embed functionality and that is why this version did not become 5.0.0 :)
Thanks for testing all code and functional: @Vasabiko
Added:
- Dynamic TTL caching
- Think and Reasoning tags now supported for
send_split_message
иsend_split_code
and use Discord Embed - New AI models:
claude-3.7-sonnet
qwen-2.5-1m-demo
mixtral-small-24b
Improved/Fixed:
pdfminer.six
replaced byfitz
(pyMuPDF). This lib more effective and stable- Refactor message/command logic:
- Removed
process_message
. Now we can usehandle_response
directly handle_response
is split into several functions
- Removed
- Refactor Ban system:
- New command
/ban-info
for check ban user status - Support Discord Embed
- Now uses asyncio.task to automatically check for expired bans
- New command
- Refactor Remind system:
- Improve time code logic
- Now generate unique IDs
- Refactor Internet search:
- Now function not create new session for each request. Use recall
- Now support HTTP status errors
- MAX_HTML_SIZE now Const
- Add HTMLTooLarge checks
- Pontential fix empty list result and unwanted element has early returned
- Refactor Libs checker:
- Now uses
importlib
for effective checks and support more python versions
- Now uses
Remove:
- My
RetryProvider
class for evade duplicate logic. Now uses G4FRetryProvider
Full Changelog: v4.4.0...v4.5.0