@xsai/text-chat 1.0.0-beta.1 → 1.0.0-beta.3

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 +1 -1
  2. package/package.json +7 -4
package/dist/index.js CHANGED
@@ -155,7 +155,7 @@ const normalizeInputTextPart = (part) => ({
155
155
  const normalizeImagePart = (part) => {
156
156
  const data = part.data.toString();
157
157
  if (URL.canParse(data))
158
- return { image_url: { url: data }, type: "image_url" };
158
+ return { image_url: { detail: part.detail, url: data }, type: "image_url" };
159
159
  throw new XSAIError("invalid-input", "Image part data must be a URL or a base64 data: URL");
160
160
  };
161
161
  const normalizeFilePart = (part) => {
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.1",
4
+ "version": "1.0.0-beta.3",
5
5
  "description": "extra-small AI SDK: OpenAI Chat Completions API model for @xsai/text.",
6
6
  "author": "Moeru AI",
7
7
  "license": "MIT",
@@ -30,14 +30,17 @@
30
30
  "files": [
31
31
  "dist"
32
32
  ],
33
+ "engines": {
34
+ "node": ">=26"
35
+ },
33
36
  "peerDependencies": {
34
- "@xsai/text": "1.0.0-beta.1"
37
+ "@xsai/text": "1.0.0-beta.3"
35
38
  },
36
39
  "dependencies": {
37
- "@xsai/shared": "1.0.0-beta.1"
40
+ "@xsai/shared": "1.0.0-beta.3"
38
41
  },
39
42
  "devDependencies": {
40
- "@xsai/text": "1.0.0-beta.1",
43
+ "@xsai/text": "1.0.0-beta.3",
41
44
  "zod": "^4.3.6"
42
45
  },
43
46
  "scripts": {