Skip to content

OpenAI GPT models reject Desktop image attachments sent as application/octet-stream #37581

Closed as not planned

Description

@p3trich0rX

Description

When I attach an image while using any model in the OpenAI GPT family in OpenCode Desktop, the request fails with:

file part media type application/octet-stream functionality not supported

This occurs across the entire GPT model family, not just one specific model. The image appears to be sent as application/octet-stream instead of its actual MIME type, such as image/png.

The same image can be accessed when I provide its full local path and ask the agent to read it. Only direct attachment through OpenCode Desktop fails.

Expected behavior:

The image should be sent with the correct MIME type and passed to the selected GPT model.

Actual behavior:

The image is sent as application/octet-stream and the request is rejected.

Plugins

@prevalentware/opencode-goal-plugin

OpenCode version

1.18.3

Steps to reproduce

  1. Open OpenCode Desktop on Windows.
  2. Select any OpenAI GPT model that supports image input.
  3. Attach a PNG image using the attachment button.
  4. Ask the model to describe the image.
  5. Send the message.
  6. The request fails with: "file part media type application/octet-stream functionality not supported".
  7. Repeat with other GPT models and observe the same error.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

OpenCode Desktop

Activity

  1. github-actions commented on Jul 18, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Sep 16, 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