utilitas 2000.3.40 → 2000.3.42
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/d1.mjs +298 -0
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +6 -6
- package/lib/bot.mjs +1 -1
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -1159,9 +1159,9 @@ const promptGoogle = async (aiId, prompt, options = {}) => {
|
|
|
1159
1159
|
} else {
|
|
1160
1160
|
throwError('Unsupported model.');
|
|
1161
1161
|
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1162
|
+
await streamResp(
|
|
1163
|
+
{ ...resp, processing: true }, { ...options, noPack: true }
|
|
1164
|
+
);
|
|
1165
1165
|
return { ...resp, processing: false };
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
@@ -1217,9 +1217,9 @@ const promptOpenAI = async (aiId, prompt, options = {}) => {
|
|
|
1217
1217
|
} else {
|
|
1218
1218
|
throwError('Unsupported model.');
|
|
1219
1219
|
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1220
|
+
await streamResp(
|
|
1221
|
+
{ ...resp, processing: true }, { ...options, noPack: true }
|
|
1222
|
+
);
|
|
1223
1223
|
return { ...resp, processing: false };
|
|
1224
1224
|
};
|
|
1225
1225
|
|
package/lib/bot.mjs
CHANGED
|
@@ -37,7 +37,7 @@ const paging = (message, options) => {
|
|
|
37
37
|
let n = message.indexOf('\n');
|
|
38
38
|
n === -1 && (n = message.length);
|
|
39
39
|
const cat = n > size ? '...' : '';
|
|
40
|
-
if ((!cat && lines(page).length + n > size)
|
|
40
|
+
if ((!cat && lines(page).length + n > size)) {
|
|
41
41
|
submit();
|
|
42
42
|
continue;
|
|
43
43
|
}
|
package/lib/manifest.mjs
CHANGED