mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_ocr_azure_document_intelligence_api_base.py | ||
| test_ocr_file_input.py | ||
| test_ocr_native_format.py | ||
| test_rust_bridge.py | ||