[BUG] ai is saying that it can't read a pdf. but the model is support it. #7074

Open
opened 2026-02-16 18:06:06 -05:00 by yindo · 2 comments
Owner

Originally created by @TheFpiasta on GitHub (Jan 21, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

I use the opencode deskop app. today downloaded. so it is the latest version.

when using gpt 5.2 the model is refusing to read any pdf. the model supports pdf reading. see

"Only models that support both text and image inputs [...]" https://platform.openai.com/docs/guides/pdf-files
"Input: Text, image" https://platform.openai.com/docs/models/gpt-5.2

In Claude code I can say: "read the pdf" an it reads the pdf.... why is opencode refusing to read pdfs?

Plugins

No response

OpenCode version

latest from 21.01.2026

Steps to reproduce

  1. open open code app
  2. use gpt 5.2 thats supports text and image input (aka also pdf)
  3. try to read in the pdf with the agent ... it refuses ... it rey to extract teh text

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

No response

Originally created by @TheFpiasta on GitHub (Jan 21, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description I use the opencode deskop app. today downloaded. so it is the latest version. when using gpt 5.2 the model is refusing to read any pdf. the model supports pdf reading. see "Only models that support both text and image inputs [...]" https://platform.openai.com/docs/guides/pdf-files "Input: Text, image" https://platform.openai.com/docs/models/gpt-5.2 In Claude code I can say: "read the pdf" an it reads the pdf.... why is opencode refusing to read pdfs? ### Plugins _No response_ ### OpenCode version latest from 21.01.2026 ### Steps to reproduce 1. open open code app 2. use gpt 5.2 thats supports text and image input (aka also pdf) 3. try to read in the pdf with the agent ... it refuses ... it rey to extract teh text ### Screenshot and/or share link _No response_ ### Operating System windows 11 ### Terminal _No response_
yindo added the windowsbugweb labels 2026-02-16 18:06:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 21, 2026):

This issue might be related to existing image/file handling issues. Please check:

  • #9375: Image paste fails only on Azure GPT-5.2-Codex (File not found) - similar model/file handling problem
  • #8807: Unhandled ENOENT error when submitting a message with a deleted file attachment

These issues suggest there may be underlying problems with how OpenCode handles file/image inputs with GPT-5.2 models.

Feel free to ignore if your specific case with PDF reading is different from image pasting issues.

@github-actions[bot] commented on GitHub (Jan 21, 2026): This issue might be related to existing image/file handling issues. Please check: - #9375: Image paste fails only on Azure GPT-5.2-Codex (File not found) - similar model/file handling problem - #8807: Unhandled ENOENT error when submitting a message with a deleted file attachment These issues suggest there may be underlying problems with how OpenCode handles file/image inputs with GPT-5.2 models. Feel free to ignore if your specific case with PDF reading is different from image pasting issues.
Author
Owner

@AndreMonthy commented on GitHub (Feb 12, 2026):

I have the same issue with Kimi K2.5 via NVIDIA Build API.

@AndreMonthy commented on GitHub (Feb 12, 2026): I have the same issue with Kimi K2.5 via NVIDIA Build API.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7074