Repository navigation
docs: consolidate 1.16.1 provider guide corrections - #2565
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
instructor | 67dd5f5 | Commit Preview URL Branch Preview URL |
Aug 28 2026, 03:11 PM |
|
Security review completed against exact head All 12 documentation/changelog changes were reviewed, including install extras, the xAI Python marker, the runnable Cerebras example, and its external reference. The changed package guidance matches Validation: MkDocs build and |
adb8571 to
faa94b9
Compare
|
Exact-head security refresh completed after the clean rebase onto merged |
faa94b9 to
ef433bc
Compare
|
Final exact-head security and validation update for
TAC status was unavailable, so protected-output visibility could not be verified; this did not limit manual coverage of the Markdown diff. |
## Summary - preserve every Anthropic batch system instruction during request conversion - reject AWS-documented unsupported Bedrock schema constraints locally without misclassifying property names that resemble constraint keywords - preserve caller-owned Bedrock nested inference configuration and Gemini safety mappings during normalization - preserve `TypedDict` `total=False`, `Required`, and `NotRequired` semantics for top-level and iterable response models - retry only failed live-provider tests once while keeping setup, collection, repeated, and other failures red - record the runtime and CI corrections in the `1.16.1` changelog ## Consolidated work Supersedes #2530, #2532, #2551, #2552, and #2568. Closes #2567. The original provider contributor commits and authors are preserved. Follow-up coverage expands the Bedrock regression matrix across nested schema paths, proves outgoing nested mappings are copied, and covers mixed Anthropic system content. The TypedDict patch is consolidated through one shared conversion helper; unlike #2568, it preserves explicit `Required` keys inside `total=False` definitions and fixes the iterable path as well. ## Validation - exact head: `e1e59211e5e0a02fe49a2cc52c07060934512397` on security-hardened main `000d893e2ece467d40e395f6ded37250dc732480` - release validator and wheel smoke tests report `1.16.1` on Python 3.9 and 3.13 - 133 focused deterministic tests passed locally across response-model, iterable, Bedrock, Gemini, batch, and remote-fetch interactions - full statement and branch coverage gate passes; offline coverage passes on Python 3.9-3.13 - Ruff lint/format and strict source/test `ty` checks pass - the workflow YAML parses, its shell block passes syntax validation, and `git diff --check` is clean - the complete exact-head GitHub matrix is green, including every configured provider suite and Workers - the mixed-provider lane observed two provider-side Cohere 422 responses, reran exactly those two failed node IDs once, and both passed - Codex Security full-range scan `ae875b7c-14cf-4dc7-a19f-91ad8f812786` completed with no findings across seven runtime, schema, mutation, and workflow surfaces - Codex Security incremental scan `2e87410f-1846-497c-ad22-9317449c63cd` completed with no findings on the final fail-closed workflow guard ## Intentionally separate - #2557 remains open because official Google GenAI materials conflict on function-response roles and the source PR has no provider-wire evidence resolving the ambiguity - OpenAI v3, async validators, Gemini tool-history conversion, Bedrock bearer authentication, provider additions, dependency batches, and architecture work remain outside this patch-sized consolidation - Dependabot PRs #2570-#2575 remain separate because they are major action updates or a broad Python dependency batch - the documentation-only consolidation remains in #2565 TAC status was unavailable, so protected scan-output visibility could not be verified; source coverage was complete.
The pyproject.toml defines the optional dependency extra as `mistral` (not `mistralai` — that is the installed package name), but two installation guides told users to run `pip install "instructor[mistralai]"`. Because the `mistralai` extra does not exist, the command silently installs Instructor without the `mistralai` SDK, so the user's first `import mistralai` fails with ModuleNotFoundError. Changed `instructor[mistralai]` → `instructor[mistral]` in: - docs/getting-started.md - docs/learning/getting_started/installation.md This now matches pyproject.toml and the already-correct docs/integrations/mistral.md.
Constraint: Instructor supports Python 3.9, while xai-sdk is installed only on Python 3.10+ Rejected: Change the xAI dependency marker | Provider SDK compatibility is an external constraint Confidence: high Scope-risk: narrow Directive: Keep provider installation guides aligned with their optional dependency markers Tested: git diff --check; verified pyproject.toml xai marker requires Python 3.10+ Not-tested: Full MkDocs build
ef433bc to
7a1385c
Compare
Summary
Consolidated work
Supersedes #2550, #2554, #2556, #2561, and #2562.
The five original contributor commits and authors are preserved. Consolidation follow-ups make the Cerebras snippet self-contained, repair all three Langfuse examples, complete matching typo cleanup, and keep transient live-provider retries narrow and fail-closed.
Final changelog resolution
[Unreleased]section empty1.16.1as 2026-08-28Validation
67dd5f5a9b96c0e16a39a5f0b5086e22ba8783b8on merged runtime main5053d7bb7178a342e49bdee8c262aaa9adb1d48a1.16.1git diff --checkpassesStrict MkDocs mode reaches the complete build but promotes three pre-existing Griffe annotation warnings in untouched runtime files to errors; this PR does not widen into those unrelated typing changes.
Intentionally separate