@ai-sdk/anthropic 3.0.0-beta.36 → 3.0.0-beta.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1385,6 +1385,24 @@ async function convertToAnthropicMessagesPrompt({
1385
1385
  }
1386
1386
  };
1387
1387
  }
1388
+ case "image-url": {
1389
+ return {
1390
+ type: "image",
1391
+ source: {
1392
+ type: "url",
1393
+ url: contentPart.url
1394
+ }
1395
+ };
1396
+ }
1397
+ case "file-url": {
1398
+ return {
1399
+ type: "document",
1400
+ source: {
1401
+ type: "url",
1402
+ url: contentPart.url
1403
+ }
1404
+ };
1405
+ }
1388
1406
  case "file-data": {
1389
1407
  if (contentPart.mediaType === "application/pdf") {
1390
1408
  betas.add("pdfs-2024-09-25");