@xsai/text-messages 1.0.0-beta.4 → 1.0.0-beta.5
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.js +2 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -309,6 +309,8 @@ const normalizeToolCallPart = (part) => ({
|
|
|
309
309
|
});
|
|
310
310
|
const normalizeUserPart = (part) => {
|
|
311
311
|
switch (part.type) {
|
|
312
|
+
case "audio":
|
|
313
|
+
throw new XSAIError("invalid-input", "Audio parts are not supported on the Messages API");
|
|
312
314
|
case "file":
|
|
313
315
|
return normalizeFilePart(part);
|
|
314
316
|
case "image":
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsai/text-messages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
5
5
|
"description": "extra-small AI SDK: Anthropic Messages API model for @xsai/text.",
|
|
6
6
|
"author": "Moeru AI",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@xsai/text": "1.0.0-beta.
|
|
37
|
+
"@xsai/text": "1.0.0-beta.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@xsai/shared": "1.0.0-beta.
|
|
40
|
+
"@xsai/shared": "1.0.0-beta.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@xsai/text": "1.0.0-beta.
|
|
43
|
+
"@xsai/text": "1.0.0-beta.5"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "pkgroll --clean-dist",
|