π Release v1.2.0 β Deep Refactor, Better Performance & Stability
β¨ Overview
This release introduces a major internal refactoring that significantly improves the botβs responsiveness, code clarity, and long-term maintainability. Unused features were removed, and core logic was streamlined, resulting in faster performance and higher reliability.
π§ Highlights
- β Deep codebase refactor across major handlers and services
- β‘ Improved bot performance and responsiveness
- π§± Increased runtime stability and error tolerance
- π¦ Reduced dependency footprint for faster setup and lower memory usage
π Interaction Improvements
-
Refactored
handlers/planner.py:- Reorganized user flow β the generated plan is now sent to the user before being saved
- Removed chart visualization as an unnecessary feature
-
Updated
README.md:- Removed charting feature from functionality list
- Cleaned up tech stack and updated project structure
ποΈ Dependency & File Cleanup
- ποΈ Removed
services/chart.py(no longer used) - π§Ή Removed
matplotlibfromrequirements.txt
π Improved Retry Mechanism
-
Renamed
RETRY_DELAYβBASE_RETRY_DELAYfor clarity -
Added exponential backoff calculation:
exponential_delay = BASE_RETRY_DELAY * (2 ** attempt)
-
Enhanced handling of OpenAI API rate limits (HTTP 429)
β οΈ Handling Frequent 429 Errors
If you're experiencing too many 429 Too Many Requests errors, consider the following:
- β± Increase
BASE_RETRY_DELAY - π Increase
MAX_RETRIES - π§ Use a lighter OpenAI model (e.g.,
gpt-3.5-turboinstead ofgpt-4) - π³ Upgrade your OpenAI plan to one with a higher request quota
π Migration Notes
- β
Ensure
services/chart.pyis deleted - π Verify your
OPENAI_API_KEYin the.envfile - π§ͺ Adjust retry parameters if needed (see above)
π§ͺ Compatibility
- β Tested on Python 3.10 β 3.13
- π Fully compatible with
.env-based local configurations
π Whatβs Next
This stable update lays the groundwork for:
- Richer planning interactions
- Smarter reminder scheduling
- A leaner, more scalable codebase