Change8

v1.13.0

📦 instructorView on GitHub →
2 features🐛 5 fixes🔧 5 symbols

Summary

This release introduces image support for Bedrock, improves type safety with a py.typed marker, and includes critical fixes for Gemini streaming and Anthropic tool blocks.

Migration Steps

  1. Update openai dependency to v2 compatible versions if using the OpenAI client.

✨ New Features

  • Added py.typed marker to support PEP 561 type checking for library consumers.
  • Added image support for Amazon Bedrock integration.

🐛 Bug Fixes

  • Fixed Gemini HARM_CATEGORY_JAILBREAK and Anthropic tool_result blocks.
  • Fixed streaming issues for Gemini (genai) provider.
  • Ensured JSON decode errors are caught by the retry mechanism and added regression tests for JSON mode.
  • Resolved various type checking diagnostics.
  • Fixed CI migration issues related to uv.

🔧 Affected Symbols

GeminiAnthropicBedrockinstructor.processpy.typed