1.47.0 (2025-10-29)
Features
- Add safety_filter_level and person_generation for Imagen upscaling (6196b1b)
- Add support for preference optimization tuning in the SDK. (4540f9d)
- Pass file name to the backend when uploading with a file path (4fa2edd)
- Support default global location when not using api key with vertexai backend (6340ce0)
- Support retries in API requests (ac70ecd)
Bug Fixes
- Check environment Vertex AI api key for credential precedence (9bd758c)
- Correct pydantic version range (bytes fields are broken with pydantic<=2.8). (d24cb56)
- Make __del__methods more robust in_api_clientandclient. (64cab58)
- Setting custom httpx async client will ensure using httpx client even if aiohttp is installed (7bd1bde)
- Support custom_base_url for Live and other APIs when project/location are unset and even when project/location are set in the environment, and avoid Automatic Default Credentials (7bd1bde)
Documentation
- Add docstring for classes and fields that are not supported in Gemini or Vertex API (4a6c6af)
- Add docstring for enum classes that are not supported in Gemini or Vertex API (909f26b)
- Add documentation for the retry behavior (ff12b46)
- Update Codegen Instructions to include newer models and use consistent formatting. (f0b0a94)
- Update README.md and index.rst to use consistent spacing for Python Samples (2e5aa1f)