Releases: 567-labs/instructor
Releases · 567-labs/instructor
v1.14.5
v1.14.4
What's Changed
- refactor(json_tracker): simplify using sibling heuristic by @thomasnormal in #2000
- Responses API validation error by @jxnl in #2002
- GenAI config labels loss by @jxnl in #2005
- GenAI SafetySettings image content by @jxnl in #2007
- List object crashes fix by @jxnl in #2011
- New release preparation by @jxnl in #2013
Full Changelog: v1.14.3...v1.14.4
v1.14.3
Added
- Completeness-based validation for Partial streaming - only validates JSON structures that are structurally complete (#1999)
- New
JsonCompletenessclass ininstructor/dsl/json_tracker.pyfor tracking JSON completeness during streaming (#1999)
Fixed
- Fixed Stream objects crashing reask handlers when using streaming with
max_retries > 1(#1992) - Field constraints (
min_length,max_length,ge,le, etc.) now work correctly during streaming (#1999)
Deprecated
PartialLiteralMixinis now deprecated - completeness-based validation handles Literal/Enum types automatically (#1999)
Full Changelog: v1.14.2...v1.14.3
v1.14.2
Fixed
- Fixed model validators crashing during partial streaming by skipping them until streaming completes (#1994)
- Fixed infinite recursion with self-referential models in Partial (e.g., TreeNode with children: List["TreeNode"]) (#1997)
Added
- Added
PartialLiteralMixindocumentation for handling Literal/Enum types during streaming (#1994) - Added final validation against original model after streaming completes to enforce required fields (#1994)
- Added tests for recursive Partial models (#1997)
Full Changelog: v1.14.1...v1.14.2
v1.14.1
What's Changed
- fix(genai): Support cached_content for Google context caching by @b-antosik-marcura in #1987
New Contributors
- @b-antosik-marcura made their first contribution in #1987
Full Changelog: v1.14.0...v1.14.1
v1.14.0
What's Changed
- Audit and standardize exception handling in instructor library by @jxnl in #1897
- Standardize provider imports in documentation by @jxnl in #1896
- Fix the issue by @jxnl in #1914
- Standardize provider factory methods in codebase by @jxnl in #1898
- Update image base URL in ipnb tutorials by @jxnl in #1922
- docs: comprehensive documentation audit and SEO optimization by @jxnl in #1944
- Update documentation for responses API mode by @jxnl in #1946
- Doc / Removed model reference in client.create of extraction example. by @grokthetech-netizen in #1951
- fix(auto_client): stop masking runtime ImportErrors in from_provider by @yurekami in #1975
- fix: OpenAI provider in from_provider ignores base_url kwarg by @gardner in #1971
- fix(genai): allow Union types for Google GenAI structured outputs by @majiayu000 in #1973
- fix(genai): extract thinking_config and other fields from user-provided config object by @majiayu000 in #1974
- fix(genai): extract thinking_config from user-provided config object by @majiayu000 in #1972
- Fix typo in reask_validation.md by @mak2508 in #1956
- Feature/bedrock document support by @lucagobbi in #1936
- chore(typing): replace pyright with ty by @jxnl in #1978
- Fix Cohere streaming and xAI tools validation by @jxnl in #1983
New Contributors
- @grokthetech-netizen made their first contribution in #1951
- @yurekami made their first contribution in #1975
- @gardner made their first contribution in #1971
- @majiayu000 made their first contribution in #1973
- @mak2508 made their first contribution in #1956
- @lucagobbi made their first contribution in #1936
Full Changelog: v1.13.0...v1.14.0
v1.13.0
What's Changed
- fix: Gemini HARM_CATEGORY_JAILBREAK and Anthropic tool_result blocks by @jxnl in #1867
- fix(genai): fix Gemini streaming by @DaveOkpare in #1864
- fix(processing): ensure JSON decode errors are caught by retry; add regression tests for JSON mode (#1856) by @devin-ai-integration[bot] in #1857
- fix: resolve type checking diagnostics by @jxnl in #1854
- fix: update openai dependency version constraints in pyproject.toml and uv.lock to support v2 by @vishnu-itachi in #1858
- feat: add py.typed marker for type checking by @jxnl in #1868
- feat(Bedrock): add image support to Bedrock by @geekbass in #1874
- chore(deps): bump the poetry group across 1 directory with 162 updates by @dependabot[bot] in #1859
- Fix/ci uv migration by @jxnl in #1886
New Contributors
- @vishnu-itachi made their first contribution in #1858
- @geekbass made their first contribution in #1874
Full Changelog: v1.12.0...v1.13.0
v1.12.0
What's Changed
- feat: add mkdocs-llmstxt plugin and llms.txt support by @jxnl in #1795
- Restore multimodal import compatibility by @jxnl in #1797
- feat(retry): add comprehensive tracking of all failed attempts and exceptions by @jxnl in #1802
- feat(hooks): add hook combination and per-call hooks support by @jxnl in #1803
- feat(retry): propagate failed attempts through reask handlers by @jxnl in #1804
- fix(responses): generalize tool call parsing for reasoning models by @sapountzis in #1799
- feat(xai): add streaming support for xAI provider by @jeongyoonm in #1758
- fix(openai): reask functionality broken in JSON mode since v1.9.0 by @pnkvalavala in #1793
- fix(openai): remove duplicate schema from messages in JSON_SCHEMA mode by @pnkvalavala in #1761
- Handle Anthropic tool_use retries on ValidationError by @kelvin-tran in #1810
- Investigate instructor client import errors by @jxnl in #1818
- fix: replace deprecated gpt-3.5-turbo-0613 with gpt-4o-mini by @sergiobayona in #1830
- Update blog post link for LLM validation examples by @Mr-Ruben in #1824
- Debug parse error hook not emitted by @jxnl in #1819
- only use thinking_config in GenerateContentConfig by @jonbuffington in #1751
- fix: Handle Gemini chunk.text ValueError when finish_reason=1 by @jxnl in #1809
- docs: replace deprecated validation_context with context parameter by @devin-ai-integration[bot] in #1831
- docs(validation): add context parameter examples and fix error output by @devin-ai-integration[bot] in #1833
- also add pop thinking_config to handle_genai_tools by @oegedijk in #1834
- update cohere text models. by @phlogisticfugu in #1840
- fix(cohere): improve V2 API version detection and add documentation by @jxnl in #1844
- doc(openrouter): use explicit async_client=False by @wongjiahau in #1847
- Fix json parsing by @NicolasPllr1 in #1836
- fix: Bedrock OpenAI models response parsing (reasoning before text) by @len-foss in #1860
- fix: Python 3.13 compatibility and import path corrections by @jxnl in #1866
New Contributors
- @sapountzis made their first contribution in #1799
- @jeongyoonm made their first contribution in #1758
- @pnkvalavala made their first contribution in #1793
- @kelvin-tran made their first contribution in #1810
- @sergiobayona made their first contribution in #1830
- @Mr-Ruben made their first contribution in #1824
- @jonbuffington made their first contribution in #1751
- @phlogisticfugu made their first contribution in #1840
- @wongjiahau made their first contribution in #1847
- @NicolasPllr1 made their first contribution in #1836
- @len-foss made their first contribution in #1860
Full Changelog: 1.11.2...v1.12.0
v1.11.3
What's Changed
- feat: add mkdocs-llmstxt plugin and llms.txt support by @jxnl in #1795
- Restore multimodal import compatibility by @jxnl in #1797
- feat(retry): add comprehensive tracking of all failed attempts and exceptions by @jxnl in #1802
- feat(hooks): add hook combination and per-call hooks support by @jxnl in #1803
Full Changelog: 1.11.2...v1.11.3
v1.11.2
What's Changed
- feat: Add automated bi-weekly scheduled releases by @jxnl in #1787
- feat: Enhanced Google Cloud Storage Support for Multimodal Classes by @jxnl in #1788
- Fix GCS URI Support for PDF and Audio Classes by @DaveOkpare in #1763
- fix(exceptions): restore backwards compatibility for instructor.exceptions imports by @jxnl in #1789
Full Changelog: v1.11.1...1.11.2