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_codeand use Discord Embed - New AI models:
claude-3.7-sonnetqwen-2.5-1m-demomixtral-small-24b
Improved/Fixed:
pdfminer.sixreplaced byfitz(pyMuPDF). This lib more effective and stable- Refactor message/command logic:
- Removed
process_message. Now we can usehandle_responsedirectly handle_responseis split into several functions
- Removed
- Refactor Ban system:
- New command
/ban-infofor 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
importlibfor effective checks and support more python versions
- Now uses
Remove:
- My
RetryProviderclass for evade duplicate logic. Now uses G4FRetryProvider
Full Changelog: v4.4.0...v4.5.0