Skip to content

Conversation

copybara-service[bot]
Copy link

fix: send full MIME types for image/video/pdf in get_content for issue #2122

Use full media types (image/jpeg, video/mp4, application/pdf) instead of suffixes (jpeg/mp4/pdf) when constructing LiteLLM payloads
This fxes compatibility with providers that validate media types (Anthropic)
Updated and added unit tests to assert full MIME types for image/video/pdf

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Aug 19, 2025
@copybara-service copybara-service bot force-pushed the copybara/796999074 branch 2 times, most recently from 455a8b2 to cac2010 Compare August 19, 2025 21:35
@AistleitnerFabian
Copy link

Stumbled onto the same problem. :/

Would love to see this merged soon! ^^

Use full media types (image/jpeg, video/mp4, application/pdf) instead of suffixes (jpeg/mp4/pdf) when constructing LiteLLM payloads
This fxes compatibility with providers that validate media types (Anthropic)
Updated and added unit tests to assert full MIME types for image/video/pdf

PiperOrigin-RevId: 800685204
@copybara-service copybara-service bot merged commit e45c3be into main Aug 29, 2025
@copybara-service copybara-service bot deleted the copybara/796999074 branch August 29, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant