@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/CHANGELOG.md +13 -0
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +18 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +18 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/internal/index.mjs
CHANGED
|
@@ -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");
|