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
fix(providers): correct OpenAI expiry serialization and Anthropic large-text-doc handling
- OpenAI upload now uses the SDK (client.files.create) so expires_after is
serialized as a real nested object; the prior expires_after[anchor] bracket
FormData keys were ignored by OpenAI's server, leaving files un-expiring.
- Anthropic url document source only supports PDFs/images; large non-PDF text
docs now throw a clear error instead of emitting an unsupported url source.
- Warn when an oversized file can't be sent because cloud storage is unavailable.
Copy file name to clipboardExpand all lines: apps/sim/providers/attachments.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -484,6 +484,11 @@ export function buildAnthropicMessageContent(
484
484
}satisfiesAnthropic.Messages.Base64ImageSource),
485
485
}satisfiesAnthropic.Messages.ImageBlockParam)
486
486
}elseif(attachment.remoteUrl){
487
+
if(attachment.mimeType!==PDF_MIME_TYPE){
488
+
thrownewError(
489
+
`Document "${attachment.filename}" (${attachment.mimeType}) is too large to send to provider "${providerId}". Only PDFs and images are supported above the inline limit — convert it to PDF or reduce its size.`
0 commit comments