opencode-go: qwen4-max missing application/pdf input modality
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- data
調査の方向性
まず providers/opencode-go/models/qwen4-max.toml を確認し、issue に PDF のサポートが記載されている models/alibaba/qwen4-max.toml と入力モダリティを比較してください。Go モデルの入力モダリティに application/pdf を追加し、PDF が記載されていないとするコメントを修正してください。メタデータで、ベースモデルと一貫して PDF 入力が宣言されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The opencode-go/qwen4-max entry omits application/pdf from its input modalities, even though its base model (alibaba/qwen4-max) lists PDF input and the Go endpoint accepts PDF document blocks. Harnesses that rely on this metadata (e.g. OpenCode) therefore drop PDF attachments silently, making PDF input appear broken for this model.
Environment
- opencode version: 2.3.0
- OS: macOS (Darwin 25.6.0, arm64)
- Terminal: xterm-256color (OpenCode desktop app; TERM_PROGRAM unset)
- Shell: /bin/zsh
- Install/channel: latest
- Active plugins: none found in config
Reproduction
- Connect OpenCode Go and select
opencode-go/qwen4-maxin OpenCode. - Attach a small PDF to a prompt (e.g. a one-page PDF containing the text "The secret code is BANANA-42.").
- Ask the model to read the attached PDF and report its contents, without using tools.
Expected Behavior
The PDF is sent to the model as document media and the model reads it. The base model entry models/alibaba/qwen4-max.toml lists application/pdf in [modalities].input, citing Alibaba's PDF understanding documentation.
Actual Behavior
OpenCode's attachment handling requires the selected model to declare PDF input; otherwise it "sends a short note in its place" (https://opencode.ai/docs/attachments/). Because providers/opencode-go/models/qwen4-max.toml lacks application/pdf, the PDF never reaches the model and it responds as if no document was attached. No error is surfaced.
Additional Context
- Affected file:
providers/opencode-go/models/qwen4-max.toml. Its comment says "Modalities: image and video input as the file already listed (not PDF); MIME types from the lab", but the lab file it references (base_model = "alibaba/qwen4-max") does includeapplication/pdf. - Verified end-to-end on 2026-11-17: with a local OpenCode config override adding
pdfto the model'scapabilities.input, the same test PDF sent throughhttps://opencode.ai/inference/go/anthropic/v1(Anthropic Messages) was accepted, and the model correctly repliedBANANA-42(end_turn, ~8.4K input tokens). The endpoint supports PDF input; only the metadata omits it. - Suggested fix: add
"application/pdf"to[modalities].inputinproviders/opencode-go/models/qwen4-max.tomland correct the comment. - Other Go models served through the same Messages translation may have the same omission; an audit of Go entries against their base models' PDF support would be worthwhile.
- User-side workaround until fixed: override
providers.opencode-go.models.qwen4-max.capabilities.inputto["text", "image", "video", "pdf"]inopencode.json.
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 7時間 1分
- マージ済み PR(30日)
- 794
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/models.dev のほかの issue
-
automation missing-model model-sync provider:cloudflare-ai-gateway
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/models.dev#14875 ·
メンテナーはふだん 1 日以内に返信
-
automation missing-model model-sync provider:cloudflare-ai-gateway
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/models.dev#14870 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
anomalyco/models.dev#14467 ·
メンテナーはふだん 1 日以内に返信
-
feat(providers): add OpenDesign (open-design.ai)再び着手できるかも @Ashlesha-17 が 9 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/models.dev#13864 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
anomalyco/models.dev#13281 ·
メンテナーはふだん 1 日以内に返信
anomalyco/models.dev の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-js#1248 ·
メンテナーはふだん 1 日以内に返信
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltオープンtechnik
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AhmedNAgy25/analysor#25 ·
メンテナーはふだん 1 日以内に返信