You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Referencing a PDF file produces AI_UnsupportedFunctionalityError #1356
Hi! I'm trying to reference a PDF file in my prompt asking it to use an MCP server to convert it to markdown, but just the fact of referencing the PDF file produces an error and it doesn't do anything with it:
any interaction after that just repeats the error, so I have to restart it.
Meanwhile, if I just write down the filename (not as a reference), it is able to run the tool:
A general question: I know that the model (Claude 4 Sonnet) is able to process PDFs, so do I really need to use an MCP server to be able to attach PDFs to the context, or should it (in theory) work out of the box (i.e. via direct file reference)?
Thanks! I can confirm that it works in the latest version with the appropriate model 👍 (e.g. Claude 4 Sonnet)
But when I tried it with GPT-4.1, it failed with the same error. I think the error message is rather opaque, it doesn't indicate that the model doesn't support that file type, so it can be confusing.
Sorry, I kind of replied to the comment in the other issue.
Yes, I was using GPT-4.1 via GitHub Copilot. It's good to know that it depends on the provider, not only the model. But could you make the error message more informative?
@thdxr curious what your thoughts are around how we expose AI SDK errors; if we could make them nicer across the board that'd be great, but not sure how we tackle it
Activity
adamdotdevin commentedon Aug 13, 2025
@laughedelic which provider are you using? i believe some providers don't support PDF, like GH copilot
laughedelic commentedon Aug 14, 2025
Thanks! I can confirm that it works in the latest version with the appropriate model 👍 (e.g. Claude 4 Sonnet)
But when I tried it with GPT-4.1, it failed with the same error. I think the error message is rather opaque, it doesn't indicate that the model doesn't support that file type, so it can be confusing.
laughedelic commentedon Aug 14, 2025
Sorry, I kind of replied to the comment in the other issue.
Yes, I was using GPT-4.1 via GitHub Copilot. It's good to know that it depends on the provider, not only the model. But could you make the error message more informative?
adamdotdevin commentedon Aug 15, 2025
@thdxr curious what your thoughts are around how we expose AI SDK errors; if we could make them nicer across the board that'd be great, but not sure how we tackle it
munim commentedon Sep 10, 2025
Github Copilot with GPT-4.1 was able to convert a PDF file using Markitdown MCP server. Wondering why wouldn't it work with OpenCode!
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
markthepixel commentedon Jan 12, 2026
running into an issue where sonnet just has a weird error and gpt5.2 just says it doesnt support it. Is it hte model or opencode?
rekram1-node commentedon Jan 12, 2026
@markthepixel what provider? what error? It's coming from ur provider
markthepixel commentedon Jan 12, 2026
It's antigravity then
Docs/privacy policy (anomalyco#1356)