litellm/tests/test_litellm_rust/ocr
Yujong Lee 835f9241e5 refactor(ocr): forward provider fields through the shared projection
OCR built optional_params from a per-provider allowlist, so any field a
provider's Rust config did not list was dropped without an error. OCR now
projects the request like chat and Responses: every field that isn't
LiteLLM-owned reaches the provider (unknown ones through compose_body), and
the only owned names it forwards are req_format and max_response_bytes.
Credentials already travel as ConnectionArguments. A field that isn't JSON
can't be sent and is rejected instead of dropped.

The OCR allowlist, ArgumentSpec and the wire wrappers around them are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:22:02 -07:00
..
__init__.py test(ocr): isolate native Rust bridge contracts (#40410) 2026-09-10 16:51:37 -07:00
test_callbacks.py test(rust): model the blocking OCR hook as a guardrail so its raise propagates (#42775) 2026-09-23 12:18:24 -07:00
test_cohere.py refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
test_dispatch.py refactor(ocr): complete native lifecycle and preserve Azure auth (#40734) 2026-09-12 11:56:49 -07:00
test_guardrails.py refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
test_lifecycle.py refactor(rust-bridge): unify native call inputs and Messages settings (#45126) 2026-10-07 15:05:43 -07:00
test_passthrough.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_requests.py refactor(ocr): forward provider fields through the shared projection 2026-10-08 09:22:02 -07:00