Skip to content

Error when attempting to read TGA file #10609

Description

@zaidka

Description

I get the following error when the agent attempts to read a .tga file:

messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'

Strangely, I can only observe it happening when using one of the Anthropic models (e.g. Opus 4.5, Sonnet 4.5). Can't reproduce the issue with other models like Devstral Small 2.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

Simply ask the agent "Read the file example.tga" where example.tga is a valid TGA file.

Screenshot and/or share link

Image

Operating System

Fedora 43

Terminal

ptyxis

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions