Add HEIC/HEIF image format support to Vision API#1616
Open
jay-dhamale wants to merge 1 commit into
Open
Conversation
- Add image/heic and image/heif to Base64ImageSourceParam Literal types - Add image/heic and image/heif to MCP _SUPPORTED_IMAGE_TYPES frozenset - Update managed agents docstrings to list the new formats - Add test coverage for heic/heif in MCP tool tests Closes anthropics#1589
pull Bot
pushed a commit
to siftster/anthropic-sdk-python
that referenced
this pull request
May 30, 2026
* feat(client): Create Bedrock Mantle client (anthropics#1616) * feat: add bedrock mantle client with auth * fix: remove workspace id from mantle client * chore: rename bedrock mantle token env var * release: 0.91.0 --------- Co-authored-by: Cameron McAteer <246350779+cameron-mcateer@users.noreply.github.com> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
image/heicandimage/heifto the set of accepted image media types across the SDK. iOS devices have used HEIC as their default camera format since iOS 11 (2017), and HEIC files are ~50% smaller than JPEG at equivalent quality.Changes
src/anthropic/types/base64_image_source_param.py"image/heic"and"image/heif"to themedia_typeLiteralsrc/anthropic/types/beta/beta_base64_image_source_param.pysrc/anthropic/lib/tools/mcp.py_SUPPORTED_IMAGE_TYPESfrozensetsrc/anthropic/types/beta/sessions/beta_managed_agents_base64_image_source_param.pysrc/anthropic/types/beta/sessions/beta_managed_agents_base64_image_source.pytests/lib/tools/test_mcp_tool.pytest_image_content_heicandtest_image_content_heifWhy this matters
Closes #1589