InstructorLite - Less headache with Gemini, structured outputs for Anthropic models

InstructorLite - v1.2.0 released

  • Gemini adapter now uses responseJsonSchema parameter introduced in November 2025. If you were using Gemini adapter before, you likely had to employ some ugly workarounds to make json schema compatible specifically with Gemini. You should be able to ditch those workarounds now!
  • Structured Outputs for Claude models become generally available on January 29 and Anthropic adapter will now take advantage of that. For models that don’t support structured outputs, strict tool calls will still be used.
  • Default model for Anthropic adapter is changed from claude-3-5-sonnet-20240620 to claude-haiku-4-5, since claude-3-5-sonnet-20240620 was retired.
2 Likes