Skip to content

language_models: Add image support for Bedrock#47673

Merged
benbrandt merged 2 commits intozed-industries:mainfrom
Gitarth:image_support_for_bedrock
Feb 13, 2026
Merged

language_models: Add image support for Bedrock#47673
benbrandt merged 2 commits intozed-industries:mainfrom
Gitarth:image_support_for_bedrock

Conversation

@Gitarth
Copy link
Contributor

@Gitarth Gitarth commented Jan 26, 2026

Closes #N/A (no existing issue - implemented to enable image input for Bedrock models)

This PR enables the "@" image mention feature for Bedrock models that support vision capabilities.

Changes:

  • Added supports_images() method to Bedrock Model enum
  • Wired up image support in the Bedrock language model provider
  • Added MessageContent::Image handling to convert base64 images to Bedrock's expected format
  • Added tool result image support

Supported models: Claude 3/3.5/4 family, Amazon Nova Pro/Lite, Meta Llama 3.2 Vision, Mistral Pixtral

Release Notes:

  • Added image input support for Amazon Bedrock models with vision capabilities

@cla-bot
Copy link

cla-bot bot commented Jan 26, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @Gitarth on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Jan 26, 2026
@Gitarth
Copy link
Contributor Author

Gitarth commented Jan 26, 2026

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 26, 2026
@cla-bot
Copy link

cla-bot bot commented Jan 26, 2026

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title Image support for bedrock language_models: Add image support for Bedrock Jan 27, 2026
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 31, 2026
@5herlocked
Copy link
Contributor

( I know I'm not a maintainer ) but it does look good to me.

Follows the Bedrock patterns, the only concern I have is forcing all images to be read as PNGs feels a bit awkward -- but should work fine.

@Gitarth
Copy link
Contributor Author

Gitarth commented Feb 6, 2026

Thanks for the review!
The PNG forcing isn't a Bedrock limitation; Bedrock actually supports PNG, JPEG, GIF, and WebP natively. It's just how LanguageModelImage was designed as a provider-agnostic abstraction that normalizes all images upfront to keep things simple.

@rgbkrk
Copy link
Collaborator

rgbkrk commented Feb 10, 2026

Can you rebase this against main or bring in a merge commit? I'll bring this up to zed maintainers to have a look at it.

@Gitarth Gitarth force-pushed the image_support_for_bedrock branch from 8b53488 to a059375 Compare February 11, 2026 03:56
Copy link
Member

@benbrandt benbrandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@benbrandt benbrandt self-assigned this Feb 12, 2026
@Gitarth
Copy link
Contributor Author

Gitarth commented Feb 12, 2026

Applied rustfmt to resolve the check_script error in the tests_pass runner.

@benbrandt benbrandt merged commit 13a9386 into zed-industries:main Feb 13, 2026
27 checks passed
morgankrey added a commit that referenced this pull request Feb 19, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #47673: Bedrock image support
- PR #49098: Agent max tokens error messaging
- PR #49622: Gemini 3.1 Pro model
- PR #49554: OpenAI-compatible edit prediction
- PR #49710: Git diff review button
- PR #49732: Subagent tool updates
- PR #49788: ETW profiling on Windows

Skipped (no target file/self-explanatory):
- PR #49094: Add project to workspace button
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #47673: Bedrock image support
- PR #49098: Agent max tokens error messaging
- PR #49622: Gemini 3.1 Pro model
- PR #49554: OpenAI-compatible edit prediction
- PR #49710: Git diff review button
- PR #49732: Subagent tool updates
- PR #49788: ETW profiling on Windows

Skipped (no target file/self-explanatory):
- PR #49094: Add project to workspace button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants