litellm/tests/test_litellm/llms/vertex_ai/gemini
Krrish Dholakia 0deffd3618
chore: reject bare str at file-input sinks to prevent local-file read (#27762)
* chore: reject bare str at file-input sinks to prevent local-file read (#27667)

Squash-merged by litellm-agent from stuxf's PR.

* 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

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* 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>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:40:07 -07:00
..
test_context_circulation.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_function_call_args_serialization.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_gemini_streaming_tool_call_finish_reason.py fix(vertex): streaming finish_reason="stop" instead of "tool_calls" for gemini-3.1-flash-lite-preview 2026-03-17 17:47:01 -03:00
test_thought_signature_in_tool_call_id.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_vertex_ai_gemini_transformation.py chore: reject bare str at file-input sinks to prevent local-file read (#27762) 2026-05-12 16:40:07 -07:00
test_vertex_and_google_ai_studio_gemini.py drop response body from vertex/bedrock transformation errors 2026-04-28 17:38:42 -07:00
test_vertex_gemini_unbound_local_error.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00