Skip to content

Bad request ... input should be image/jpeg ... #23990

Closed as not planned
Closed as not planned

Description

@FlominatorTM

Description

Bad Request: 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'

Plugins

No response

OpenCode version

1.14.21
1.14.22

Steps to reproduce

  1. Ask to update something in the spec of a custom image format
  2. the spec file is read
  3. message Bad Request: 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'appears using Claude Sonnet 4.6 (but similar error messages also come with Gemini/ChatGPT, while Big Pickle seems to work)

I've updated to the latest version and I've added explicitly to agents.md not to send, retrieve ety. any images

Screenshot and/or share link

Error Slaude Sonnet 4.6:
Image

Error ChatGPT:

Image

Operating System

Win11 25H2

Terminal

Windows Terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 23, 2026
  2. github-actions commented on Apr 23, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review those issues and, if they cover your case, consider adding a comment there instead.

  3. FlominatorTM commented on Apr 23, 2026

    @FlominatorTM
    Author

    Maybe also related to #23983

  4. FlominatorTM commented on Apr 24, 2026

    @FlominatorTM
    Author

    Problem persists with 1.14.22. Explicitly telling OpenCode to avoid the spec file works (except when wanting it to be updated)

  5. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions