litellm/tests/test_litellm/llms/vertex_ai/gemini
mateo-berri f09992b730 fix(image_handling): keep DNS, signing, and Vertex Gemini fetches off the event loop
The SSRF check in async_safe_get resolved DNS on the event loop and a blocked
address was retried three times; validate_url now runs in a thread and an
SSRFError fails the fetch on the first attempt in both fetchers. The shared
HTTP handler signed the request and ran pre_call logging on the loop after an
async transform; both now run in a thread. Vertex AI Gemini still fetched
http:// images and https images without an inferrable mime type with the sync
converter inside its async body builder; the walker takes a should_inline
predicate and Vertex AI inlines exactly those URLs, leaving https images with a
known mime type and Files API refs to Google. When one download fails the
other in-flight downloads for that request are now cancelled instead of
finishing in the background
2026-09-04 20:54:40 -07:00
..
__init__.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_context_circulation.py chore: litellm oss staging 250626 (#31305) 2026-06-25 21:00:28 -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_image_url_missing_field.py Litellm oss staging (#28161) 2026-05-18 16:27:44 -07:00
test_gemini_streaming_tool_call_finish_reason.py feat: litellm oss 110626 (#30202) 2026-06-11 22:30:26 -07:00
test_grounding_requests.py Merge branch 'litellm_internal_staging' of https://github.com/BerriAI/litellm into litellm_gemini_maps_grounding_cost 2026-08-26 16:27:40 -07: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_tool_call_followed_by_text_assistant.py Litellm oss staging 030626 (#29578) 2026-06-03 11:01:51 -07:00
test_transformation.py fix(image_handling): keep DNS, signing, and Vertex Gemini fetches off the event loop 2026-09-04 20:54:40 -07:00
test_vertex_ai_gemini_transformation.py feat(gemini): day-0 pricing for gemini-3.8-flash 2026-09-02 08:04:14 -07:00
test_vertex_and_google_ai_studio_gemini.py fix(gemini): return enabled thinking content by default 2026-09-01 17:52:37 +08: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