-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Description
I have been trying to support PDF file processing with Claude, and I followed the description in the documentation, but the request directly times out.
This is the input I am testing against:
{
"role": "user",
"content": [
{
"type": "text",
"text": "What do you read?"
},
{
"type": "file",
"data": "https://<my_server_url>/files/68728cdeed4cdcfc8397a045",
"mimeType": "application/pdf"
}
]
}
The same input and processing code has proper results from OpenAI and Google models. I have attempted using base64Url encoded string and it works on Anthropic provider, but strangely the url doesnt work, when the documentation for Anthropic stated directly it would work.
AI SDK Version
ai
: 4.3.17
@ai-sdk/anthropic
: 1.2.12