Skip to content

v2.14.0

Choose a tag to compare

@lfnovo lfnovo released this 16 Jan 18:24
· 120 commits to main since this release
8165cbb

Added

  • Proxy Configuration - HTTP proxy support for all provider connections
    • Configuration via environment variable: ESPERANTO_PROXY
    • Configuration via config dict: config={"proxy": "http://proxy:8080"}
    • Supports HTTP, HTTPS, and authenticated proxies
    • Priority order: config dict > environment variable > none
    • Example:
      # Via environment variable
      export ESPERANTO_PROXY="http://proxy.example.com:8080"
      
      # Via config dict
      model = AIFactory.create_language(
          "openai", "gpt-4",
          config={"proxy": "http://proxy.example.com:8080"}
      )

Changed

  • Updated dependencies to latest versions
  • General codebase cleanup and maintenance

Fixed

  • HTTP Client Resource Management - Fixed async client not being properly closed when deleting model instances (#60)
    • Added HttpConnectionMixin consolidating timeout, SSL, and client lifecycle management
    • Providers now support context managers (with model: and async with model:)
    • Added explicit close() and aclose() methods for resource cleanup
    • Destructor now properly cleans up sync clients

Installation

pip install esperanto==2.14.0

Full Changelog: v2.13.0...v2.14.0