Skip to content

πŸš€ Release v1.2.0 β€” Deep Refactor, Better Performance & Stability

Choose a tag to compare

@AlexTkDev AlexTkDev released this 08 May 07:03
· 59 commits to main since this release

✨ 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 matplotlib from requirements.txt

πŸ” Improved Retry Mechanism

  • Renamed RETRY_DELAY β†’ BASE_RETRY_DELAY for 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-turbo instead of gpt-4)
  • πŸ’³ Upgrade your OpenAI plan to one with a higher request quota

πŸ“Œ Migration Notes

  • βœ… Ensure services/chart.py is deleted
  • πŸ”‘ Verify your OPENAI_API_KEY in the .env file
  • πŸ§ͺ 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