@xsai/text-chat 1.0.0-beta.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -226,6 +226,8 @@ const normalizeAssistantMessage = (message) => {
226
226
  };
227
227
  const normalizeUserPart = (part) => {
228
228
  switch (part.type) {
229
+ case "audio":
230
+ return { input_audio: { data: part.data, format: part.format }, type: "input_audio" };
229
231
  case "file":
230
232
  return normalizeFilePart(part);
231
233
  case "image":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xsai/text-chat",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.3",
4
+ "version": "1.0.0-beta.5",
5
5
  "description": "extra-small AI SDK: OpenAI Chat Completions 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.3"
37
+ "@xsai/text": "1.0.0-beta.5"
38
38
  },
39
39
  "dependencies": {
40
- "@xsai/shared": "1.0.0-beta.3"
40
+ "@xsai/shared": "1.0.0-beta.5"
41
41
  },
42
42
  "devDependencies": {
43
- "@xsai/text": "1.0.0-beta.3",
43
+ "@xsai/text": "1.0.0-beta.5",
44
44
  "zod": "^4.3.6"
45
45
  },
46
46
  "scripts": {