Skip to content

Venice AI Python Client v1.3.0

Choose a tag to compare

@sethbang sethbang released this 25 Jun 08:21
· 100 commits to main since this release

What's Changed

🚨 Enhanced Exception Handling

  • New exception classes for better error handling:
    • PaymentRequiredError (HTTP 402) - Raised when payment is required to access the service
    • ServiceUnavailableError (HTTP 503) - Raised when the service is temporarily unavailable
  • Improved error mapping for more specific exception types

🔧 Embeddings API Enhancements

  • Input validation with maximum array length (2048 items limit)
  • Base64 encoding support with encoding_format parameter ("float" or "base64")
  • OpenAI compatibility improvements with user parameter support

🎯 Model Capabilities Expansion

  • New model capabilities:
    • supportsVision - Indicates if model supports image inputs
    • supportsReasoning - Indicates if model has reasoning capabilities
    • quantization - Specifies model quantization type
  • Beta field support for identifying beta models
  • Enhanced model filtering with capability-based parameters

📚 Documentation & Testing

  • New test suite with 28 tests for embeddings API alignment
  • Updated 13+ test files for new exception handling and model capabilities
  • Enhanced E2E tests for new model fields

🐛 Fixes

  • Improved client-side robustness in stream handling
  • Enhanced pricing information retrieval and cost calculations
  • Various test corrections for new exception types

Full Changelog: v1.2.0...v1.3.0