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

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.
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "3.0.0-beta.36" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.0-beta.38" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -1400,6 +1400,24 @@ async function convertToAnthropicMessagesPrompt({
1400
1400
  }
1401
1401
  };
1402
1402
  }
1403
+ case "image-url": {
1404
+ return {
1405
+ type: "image",
1406
+ source: {
1407
+ type: "url",
1408
+ url: contentPart.url
1409
+ }
1410
+ };
1411
+ }
1412
+ case "file-url": {
1413
+ return {
1414
+ type: "document",
1415
+ source: {
1416
+ type: "url",
1417
+ url: contentPart.url
1418
+ }
1419
+ };
1420
+ }
1403
1421
  case "file-data": {
1404
1422
  if (contentPart.mediaType === "application/pdf") {
1405
1423
  betas.add("pdfs-2024-09-25");