Files
codewhale/crates
Hunter Bown b7f86ae19f fix(tools): sanitize tool schemas before sending to DeepSeek
The new schema_sanitize module collapses Pydantic-style nullable
anyOf/oneOf unions to {type, nullable: true}, injects empty properties
on bare objects, prunes dangling required entries, and collapses
single-element unions. Run on every tool schema before
build_api_tools() returns the catalog.

Closes a class of silent 400s on /beta/chat/completions strict tool
mode for MCP-derived schemas.

Closes #715
2026-05-05 03:55:32 -05:00
..