Files
crewAI/lib
Vinicius Brasil 6536114451
Some checks are pending
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Vulnerability Scan / Detect changes (push) Waiting to run
Vulnerability Scan / pip-audit (push) Blocked by required conditions
fix(deps): pin instructor <1.16 to keep OpenAI Mode.TOOLS registered (#7719)
* fix(deps): pin instructor <1.16 to keep OpenAI Mode.TOOLS registered

instructor 1.16.0 removed the OpenAI Mode.TOOLS handler in favor of
Mode.RESPONSES_TOOLS. `InternalInstructor` calls `instructor.from_provider`,
which still defaults to Mode.TOOLS internally, so any native-OpenAI kickoff
that hits a structured-output path (guardrails, output_pydantic, LLM
guardrails) fails immediately with `ModeError: Mode.TOOLS is not registered
for provider Provider.OPENAI`.

Cap the range while we teach `_create_instructor_client` to negotiate a
supported mode against `mode_registry`.

Refs COR-861 (Docusign, deployment 134108).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix: avoid redundant cache saves in tests workflow

Co-authored-by: vinibrsl <5093045+vinibrsl@users.noreply.github.com>

* docs: explain instructor compatibility pin

Co-authored-by: vinibrsl <5093045+vinibrsl@users.noreply.github.com>

---------

Co-authored-by: Daniel Minella <dminella@Mac.home>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-09-23 07:17:08 +05:30
..