Repository navigation
feat(slack): Send current-message images natively to image models - #2617
Merged
Merged
Conversation
When every profile model accepts image input, pass Slack images from the current message to the model as image parts instead of a vision summary. Use the media type detected from the bytes, since providers reject a mismatched type. Keep the vision summary for text-only profile models and for images in earlier thread messages. Co-Authored-By: Thomas Jiang <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
1 screenshot change — 1 changed · 0 added · 0 removed Review screenshots in Frameshift
|
thomasjiangcy
approved these changes
Nov 3, 2026
This branch was successfully deployed
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.
Slack images in the current message now reach the model as native image parts, not a vision-model summary. Before, the main model got a 500-character summary from
AI_VISION_MODELand lost small text, exact numbers, and dense UI detail. Prod runs oneanthropic/claude-opus-5.5profile, which reads images.Web chat (#1933) already sends original images this way. Pi converts
ImageContentto Anthropic base64 image blocks.Behavior
Tests
attachment-media-behavior: the first scenario now sends a mislabeled PNG natively. The second scenario uses a text-only model to cover the omitted-image notice.bot-image-hydration: the inline-summary scenarios use real PNG bytes and a text-only model, so they test the fallback by model and not by fake bytes.Not in scope
Native PDFs and other files. pi-ai 0.85.1 and 1.5.0 have no document content type, although Anthropic accepts
documentblocks.via @thomasjiangcy.
--
View Session [Sentry]