v1.14.0
📦 instructorView on GitHub →
✨ 4 features🐛 6 fixes🔧 8 symbols
Summary
This release focuses on standardizing provider factory methods and exception handling, while adding Bedrock document support and fixing critical bugs in GenAI, OpenAI, and Cohere integrations.
Migration Steps
- Review exception handling logic as it has been standardized across the library
- If using from_provider with OpenAI, verify base_url configurations as they are now correctly respected
✨ New Features
- Added support for Bedrock documents
- Standardized provider factory methods across the codebase
- Standardized exception handling across the library
- Comprehensive documentation audit and SEO optimization
🐛 Bug Fixes
- Fixed auto_client masking runtime ImportErrors in from_provider
- Fixed OpenAI provider in from_provider ignoring base_url keyword argument
- Fixed Google GenAI to allow Union types for structured outputs
- Fixed Google GenAI to correctly extract thinking_config and other fields from user-provided config objects
- Fixed Cohere streaming and xAI tools validation
- Updated image base URLs in Jupyter notebook tutorials
🔧 Affected Symbols
from_providerinstructor.from_providerinstructor.patchinstructor.clientGoogleGenAICohereBedrockxAI