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/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
- // await streamResp(
1163
- // { ...resp, processing: true }, { ...options, noPack: true }
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
- // await streamResp(
1221
- // { ...resp, processing: true }, { ...options, noPack: true }
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) || (cat && page.length)) {
40
+ if ((!cat && lines(page).length + n > size)) {
41
41
  submit();
42
42
  continue;
43
43
  }
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2000.3.40",
4
+ "version": "2000.3.42",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2000.3.40",
4
+ "version": "2000.3.42",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",