@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.
@@ -1374,6 +1374,24 @@ async function convertToAnthropicMessagesPrompt({
1374
1374
  }
1375
1375
  };
1376
1376
  }
1377
+ case "image-url": {
1378
+ return {
1379
+ type: "image",
1380
+ source: {
1381
+ type: "url",
1382
+ url: contentPart.url
1383
+ }
1384
+ };
1385
+ }
1386
+ case "file-url": {
1387
+ return {
1388
+ type: "document",
1389
+ source: {
1390
+ type: "url",
1391
+ url: contentPart.url
1392
+ }
1393
+ };
1394
+ }
1377
1395
  case "file-data": {
1378
1396
  if (contentPart.mediaType === "application/pdf") {
1379
1397
  betas.add("pdfs-2024-09-25");