Skip to content

Bug: pdf reader doesn't work for models that support it #15748

Closed as not planned

Description

@Skelectric

Description

Qwen3.5 is multimodal and supports PDFs natively.

Despite this, adding "pdf" as an input modality in this model's opencode.json config entry breaks Opencode altogether, yielding AI_UnsupportedFunctionalityError: 'file part media type application/pdf' functionality not supported.

OpenCode version

1.2.10

Screenshot and/or share link

An example of qwen3.5 reading a PDF in ik_llama.cpp:

Image

I have a custom pdf-ocr tool that I want to deprecate, so I asked Qwen3.5 to read a PDF file without that custom tool and it couldn't. Then I added the "pdf" modality and restarted Opencode, continuing the previous session:

Image

Operating System

Fedora

Activity

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

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify the differences so maintainers can track it separately.

  3. github-actions commented on May 2, 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

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions