litellm/tests/unit/llms/vertex_ai/files
kenneth-berri 853773e75a
fix(vertex_ai): send document_ocr, audio_track_extraction and auto_truncate on Gemini embeddings (#51686)
The three params were dropped without an error on the online path and in Vertex batch rows,
and a PDF embedding reported 0 tokens because its DOCUMENT token count failed usage validation.
They now go in embedContentConfig online and in embed_content_config inside each batch row's
request, and DOCUMENT tokens are counted at the text rate.

Resolves LIT-10384

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-13 12:10:13 -08:00
..
__init__.py test: migrate legacy provider tests to tests/unit (wave 2, phase 13) 2026-09-20 14:18:49 +00:00
test_file_retrieve_provider_routing.py test: migrate legacy provider tests to tests/unit (wave 2, phase 13) 2026-09-20 14:18:49 +00:00
test_transformation.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_vertex_ai_binary_file_upload.py test: migrate legacy provider tests to tests/unit (wave 2, phase 13) 2026-09-20 14:18:49 +00:00
test_vertex_ai_files_handler.py feat(proxy)!: only let clients pick S3 buckets the admin allowed (#47496) 2026-11-06 02:50:15 +00:00
test_vertex_ai_files_integration.py test: migrate legacy provider tests to tests/unit (wave 2, phase 13) 2026-09-20 14:18:49 +00:00
test_vertex_ai_files_streaming.py feat(vertex-ai)!: support gemini 3.1 flash tts (#31915) 2026-10-21 04:18:42 +00:00
test_vertex_ai_files_transformation.py fix(vertex_ai): send document_ocr, audio_track_extraction and auto_truncate on Gemini embeddings (#51686) 2026-11-13 12:10:13 -08:00