Skip to content

SVG File Paths Rejected #4052

Description

@JuliaBonita

Description

When I'm trying to point the agent to an SVG file, it gets rejected with this error:
messages.72.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'

So I can't share or tell the agents to use SVG files in my instructions.

OpenCode version

1.0.41

Steps to reproduce

  1. Try to paste a file path to an SVG into OpenCode.
  2. Watch your soul get crushed from the rejection.

Screenshot and/or share link

No response

Operating System

macOS Tahoe 26.0.1

Terminal

WezTerm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions