Antropic Api Error
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
- [ ] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
Describe the bug
I have this error when I choose "auto" in model: Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CVKWY6Ue1FZoyBfkgAqyc) {"type":"error","error":{"type":"invalid_request_error","message":"messages.4.content.0.pdf.source.base64.data: A maximum of 100 PDF pages may be provided."},"request_id":"req_011CVKWY6Ue1FZoyBfkgAqyc"}
Debug information: {"conversation_id":"df91d83c-f111-4d95-84bf-b32c42f83324"}
To reproduce
I've loaded a 125 pages pdf and then all the time I have this error
Expected behavior
No response
Screenshots, videos, and logs
No response
Operating system (OS)
Windows
Operating system and version
Windows 11
Shell Version
No response
Current Warp version
No response
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
I have the same issue:
I'm sorry, I couldn't complete that request.
Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CVfqFFvUfJYMH1MNBuV42) {"type":"error","error":{"type":"invalid_request_error","message":"messages.24.content.0.pdf.source.base64.data: A maximum of 100 PDF pages may be provided."},"request_id":"req_011CVfqFFvUfJYMH1MNBuV42"}
I got the same error message:
I'm sorry, I couldn't complete that request.
Response stream finished unexpectedly with internal error: Anthropic API error: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_011CVmJjUt2ofJBjjScraEiQ) {"type":"error","error":{"type":"invalid_request_error","message":"messages.46.content.0.image.source.base64.data: Image does not match the provided media type image/png"},"request_id":"req_011CVmJjUt2ofJBjjScraEiQ"}
HI there,
Seems Anthropic has some PDF limits of 100 pages or 32mb per file, read more about their limits here.