litellm/tests/test_litellm/ocr
Krrish Dholakia 590bc834c5
chore: reject bare str at file-input sinks to prevent local-file read (#27762)
Cherry-pick of #27762 onto litellm_1.84.0rc2.

* chore: reject bare str at file-input sinks to prevent local-file read (#27667)
* fix: use os.PathLike in ocr sink and check truthy reasoningSummary for bridge
  - ocr/main.py: widen Path check to os.PathLike for consistency with other sinks
  - main.py: bridge condition checks truthiness of reasoning_summary, not just None
* fix: remove unused pathlib.Path import in ocr/main.py

Co-authored-by: yuneng-jiang <yuneng@berri.ai>
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
Co-authored-by: stuxf <70670632+stuxf@users.noreply.github.com>
2026-05-12 17:30:03 -07:00
..
__init__.py Enable local file support for OCR (#22133) 2026-02-27 10:50:02 -08:00
test_ocr_file_input.py chore: reject bare str at file-input sinks to prevent local-file read (#27762) 2026-05-12 17:30:03 -07:00