fix(vision): mark auto-generated image descriptions as system-provided#5574
Open
Ninthkitten wants to merge 1 commit into
Open
fix(vision): mark auto-generated image descriptions as system-provided#5574Ninthkitten wants to merge 1 commit into
Ninthkitten wants to merge 1 commit into
Conversation
The vision model's description is injected as user text, so chat models compliment the user's prose instead of answering about the image. Label the description as auto-generated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.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
The central vision model's image description is injected into the user's message bare, so chat models mistake it for the user's own writing and respond to the prose instead of the image. This PR labels the injected description as auto-generated (naming the vision model) so the chat model knows who is speaking. The label matters even when the same model serves both vision and chat: the description is produced in a separate call that the chat turn has no memory of, so the model still reads its own words as the user's.
Target branch
dev, notmain.Linked Issue
Fixes #5573
Type of Change
Checklist
devdocker compose up) and verified the change works end-to-end. Type-checks and unit tests are not enough.How to Test
This fix has been running in a self-hosted deployment since 13 July.
🤖 Generated with Claude Code