Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 2.56 KB

File metadata and controls

76 lines (59 loc) · 2.56 KB

Changelog

[2.0.0] - 2024-12-XX

Major Updates

Python Version

  • ⬆️ Upgraded from Python 3.9 to Python 3.12
  • Modern Python features and performance improvements

Project Structure

  • ✨ Added pyproject.toml for modern Python project management
  • 📦 Migrated from requirements.txt to pyproject.toml dependencies
  • 🐳 Updated Dockerfile with best practices (multi-stage, slim image)
  • 📝 Added comprehensive .gitignore

Code Quality

  • 🔧 Added Ruff for fast linting and formatting
  • 🔍 Added mypy for static type checking
  • ✅ Added pre-commit hooks configuration
  • 📊 Improved type hints throughout codebase
  • 🪵 Replaced print statements with proper logging
  • 🛡️ Fixed bare except clauses with specific exception handling

Dependencies

  • ⬆️ Updated LangChain to 0.3.0+
  • ⬆️ Updated OpenAI SDK to 1.54.0+
  • ⬆️ Updated FastAPI to 0.115.0+
  • ⬆️ Updated Pydantic to 2.9.0+
  • ⬆️ Updated Web3.py to 6.20.0+
  • ⬆️ Updated all other dependencies to latest stable versions

CLI Improvements

  • 🎨 Replaced devtools.pprint with rich for better terminal output
  • 🎨 Added colored console output with Rich
  • 🔄 Lazy initialization of clients to avoid import-time errors
  • 📝 Improved command descriptions and help text

Logging

  • 🪵 Added structured logging throughout the application
  • 📊 Log levels: DEBUG, INFO, WARNING, ERROR
  • 🔍 Better error messages with stack traces

Error Handling

  • 🛡️ Improved exception handling with proper error messages
  • 🔄 Better retry logic with logging
  • ⚠️ More informative error messages

Documentation

  • 📚 Updated README with modern setup instructions
  • 📝 Added development workflow documentation
  • 🎯 Clearer installation steps
  • 📖 Better usage examples

Breaking Changes

  • ⚠️ Python 3.9 no longer supported - Requires Python 3.12+
  • ⚠️ Default LLM model changed from gpt-3.5-turbo-16k to gpt-4o-mini
  • ⚠️ CLI output format changed - Now uses Rich for formatting

Migration Guide

  1. Upgrade Python: Ensure you have Python 3.12+ installed
  2. Reinstall dependencies: Run pip install -e ".[dev]"
  3. Update environment variables: No changes needed
  4. Update scripts: CLI commands remain the same, but output format is improved

Future Improvements

  • Add async/await support for better performance
  • Add comprehensive test suite
  • Add CI/CD pipeline
  • Add monitoring and observability
  • Add rate limiting and retry strategies
  • Add caching for API responses