You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bedrock: GPT-6 Sol rejects images returned by read tool in v2.0.20 #52344
On OpenCode v2.0.20, reading a PNG with amazon-bedrock/global.openai.gpt-6-sol succeeds, but the following model request fails with an image-field error. The same PNG attached directly to a user message does not produce that error.
Active plugins: None found in global configuration or the isolated reproduction directory
Reproduction
Create a valid PNG at /path/to/test.png.
Run:
opencode run --standalone \
--model amazon-bedrock/global.openai.gpt-6-sol \
'Use the read tool to open /path/to/test.png and say what color it is. Do not use other tools.'
Observe that Read completes, then the model request fails.
Expected Behavior
Sol processes the image returned by read and answers the question.
Actual Behavior
Sanitized output (local PNG filename replaced with test.png):
> build · global.openai.gpt-6-sol
→ Read test.png
Error: This model doesn't support the image field for user messages. Remove image and try again.
The command exits with code 1. In a separate control run, supplying the same PNG with opencode run --file /path/to/test.png completed without this image-field error.
Additional Context
Reproduced on v2.0.20 with a newly generated, non-confidential 16×16 PNG. No screenshot or image is attached.
Thanks for the V2 fix. For the model-capability follow-up, my earlier Bedrock Converse tests are here: #49197 (comment). Pixtral, Mistral Large 3, and Gemma accepted user-level images but rejected tool-result images; Claude, Nova, and Llama 4 Maverick accepted tool-result images. The Llama 4 result was empirical even though the AWS documentation listed only Anthropic/Nova. Those tests predate this V2 fix; I have not retested the newly released implementation.
Activity
github-actions commentedon Sep 30, 2026
This issue might be a duplicate of existing issues. Please check:
rekram1-node commentedon Oct 1, 2026
the api is a lil inconsistent in terms of which models support what, have a decent approximation fix for now but will make better abstractions soon.
Will release later today.
alohaninja commentedon Oct 2, 2026
Thanks for the V2 fix. For the model-capability follow-up, my earlier Bedrock Converse tests are here: #49197 (comment). Pixtral, Mistral Large 3, and Gemma accepted user-level images but rejected tool-result images; Claude, Nova, and Llama 4 Maverick accepted tool-result images. The Llama 4 result was empirical even though the AWS documentation listed only Anthropic/Nova. Those tests predate this V2 fix; I have not retested the newly released implementation.