ai 2.1.21 → 2.1.22
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +22 -1
package/dist/index.js
CHANGED
@@ -337,7 +337,7 @@ function createParser2(res) {
|
|
337
337
|
controller.close();
|
338
338
|
return;
|
339
339
|
}
|
340
|
-
if (text === "</s>" || text === "<|endoftext|>") {
|
340
|
+
if (text === "</s>" || text === "<|endoftext|>" || text === "<|end|>") {
|
341
341
|
controller.close();
|
342
342
|
} else {
|
343
343
|
controller.enqueue(text);
|
package/dist/index.mjs
CHANGED
@@ -304,7 +304,7 @@ function createParser2(res) {
|
|
304
304
|
controller.close();
|
305
305
|
return;
|
306
306
|
}
|
307
|
-
if (text === "</s>" || text === "<|endoftext|>") {
|
307
|
+
if (text === "</s>" || text === "<|endoftext|>" || text === "<|end|>") {
|
308
308
|
controller.close();
|
309
309
|
} else {
|
310
310
|
controller.enqueue(text);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ai",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.22",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"main": "./dist/index.js",
|
@@ -20,6 +20,12 @@
|
|
20
20
|
"module": "./dist/index.mjs",
|
21
21
|
"require": "./dist/index.js"
|
22
22
|
},
|
23
|
+
"./prompts": {
|
24
|
+
"types": "./prompts/dist/index.d.ts",
|
25
|
+
"import": "./prompts/dist/index.mjs",
|
26
|
+
"module": "./prompts/dist/index.mjs",
|
27
|
+
"require": "./prompts/dist/index.js"
|
28
|
+
},
|
23
29
|
"./react": {
|
24
30
|
"types": "./react/dist/index.d.ts",
|
25
31
|
"react-server": "./react/dist/index.server.mjs",
|
@@ -88,6 +94,21 @@
|
|
88
94
|
"publishConfig": {
|
89
95
|
"access": "public"
|
90
96
|
},
|
97
|
+
"homepage": "https://github.com/vercel-labs/ai#readme",
|
98
|
+
"repository": {
|
99
|
+
"type": "git",
|
100
|
+
"url": "git+https://github.com/vercel-labs/ai.git"
|
101
|
+
},
|
102
|
+
"bugs": {
|
103
|
+
"url": "https://github.com/vercel-labs/ai/issues"
|
104
|
+
},
|
105
|
+
"keywords": [
|
106
|
+
"ai",
|
107
|
+
"nextjs",
|
108
|
+
"svelte",
|
109
|
+
"react",
|
110
|
+
"vue"
|
111
|
+
],
|
91
112
|
"scripts": {
|
92
113
|
"build": "tsup && cat react/dist/index.server.d.ts >> react/dist/index.d.ts",
|
93
114
|
"clean": "rm -rf dist && rm -rf react/dist && rm -rf svelte/dist && rm -rf vue/dist",
|