Change8

v2.34.0

📦 openai-python-sdkView on GitHub →
4 features🐛 11 fixes🔧 2 symbols

Summary

This release introduces support for setting headers via environment variables and adds functionality for Admin API Keys per endpoint. Several bug fixes address authentication handling and type corrections in response models.

✨ New Features

  • Added support for setting headers via environment variable.
  • Added external_key_id parameter to projects.
  • Added email and metadata parameters to users.
  • Added support for Admin API Keys per endpoint.

🐛 Bug Fixes

  • Allowed explicit Azure authentication headers.
  • Corrected the enum value for prompt_cache_retention from 'in-memory' to 'in_memory'.
  • Preserved the python api key attribute type.
  • Resolved python authentication type checks.
  • Supported admin API key authentication.
  • Avoided bearer token fallback when using admin authentication.
  • Preserved selected authentication credentials.
  • Required bearer authentication for stream helpers.
  • Corrected 'created_at' and 'completed_at' types to float in Response objects.
  • Corrected timestamp types to int in Response models.
  • Used the correct field name format for multipart file arrays.

Affected Symbols