Repository navigation
docs: read attaches image files for vision models - #1025
Conversation
Co-authored-by: Eden Reich <16985712+edenreich@users.noreply.github.com>
|
🗑️ Preview environment destroyed. |
|
@infer can you fix the drift, in a separate PR? |
|
Model: Todos
Pull Request✅ Infer Result: SuccessEverything is committed and pushed, and the working tree is clean. A fresh The drift is fixed in a separate PR: #1026 (branch Root cause - the failing "Docs drift" job had nothing to do with this PR's changes. The provider-docs generator fetches the canonical
Since WebWright is back in the live schema but absent from the docs overrides, the generator hard-fails with The fix - the docs-side removal in 915aee4 happened purely because upstream had dropped the provider, so with it restored upstream, PR #1026 re-applies what it removed (the inverse of 915aee4): the Verification - Heads-up for this PR - the Docs drift check on PR #1025 will stay red until PR #1026 merges and this branch picks up main, because the drift job runs each PR branch as-is. This PR's own changes (cli.md, github-action.md) are unaffected; the failure is purely the upstream WebWright revert/restore churning under every branch. Model: Tokens: 1,205,963 in · 21,235 out · 1,227,198 total (23 requests) Tool calls: 40 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
Summary
Documents that the CLI's Read tool now attaches an image file for a model that can see images, and sends a text-only model to ImageDecode.
cli.md, the Read tool entry: an image file (png, jpg, jpeg, gif, webp, or an extensionless file whose bytes are an image) is attached to the model's next message when the gateway lists image input among the model's modalities, with the result line carrying path and pixel size. A text-only model or a session without an image service gets the error that points at ImageDecode. One example line for each outcome.cli.md, frame sources: the line that said ImageDecode handles arbitrary images now splits by model - Read for a vision model, ImageDecode for a text-only one. The annotator paragraph reframes ImageDecode as the text-only path, and as a text description on top of an image a vision model already sees.cli.md, "Vision-capable models and ImageDecode": adds the on-disk case to the same split.github-action.md, image guidance: the agent still downloads an embedded image with WebFetch, then a vision session model reads it with Read while a text-only one reads it with ImageDecode side-callingvision-model.Verification
bun run lint:md,bun run format:checkandbun run buildall pass.Closes #1024
Generated with Claude Code