litellm/tests/test_litellm/ocr
ryan-crabbe-berri b573679384 fix(proxy): keep every value of a repeated form key in get_form_data
get_form_data collapsed the FormData multidict with dict(form) before the loop
that rebuilds `foo[]` arrays ever ran, so a request sending
timestamp_granularities[]=word and timestamp_granularities[]=segment reached the
provider as ["segment"] with the first value silently dropped. Read the multidict
with multi_items() instead.

The test could not catch it because its mock was a plain dict carrying the same
key twice, which Python collapses exactly the way the bug did. Every request.form
mock that fed get_form_data now returns real FormData.
2026-08-21 18:44:46 -07:00
..
__init__.py Enable local file support for OCR (#22133) 2026-02-27 10:50:02 -08:00
test_ocr_azure_document_intelligence_api_base.py test: litellm fix failing tests (#32577) 2026-07-09 13:54:45 -07:00
test_ocr_file_input.py fix(proxy): keep every value of a repeated form key in get_form_data 2026-08-21 18:44:46 -07:00
test_ocr_native_format.py fix(ocr): reject invalid req_format values as 400 on the SDK path 2026-08-17 15:49:18 -07:00
test_rust_bridge.py feat(ocr): thin Rust OCR Python bridge (#31368) 2026-06-25 18:42:59 -07:00