utilitas 1998.2.41 → 1998.2.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
@@ -739,7 +739,7 @@ const packResp = async (resp, options) => {
739
739
  ...references ? { references } : {},
740
740
  ...referencesMarkdown ? { referencesMarkdown } : {},
741
741
  ...audio ? { audio, audioMimeType: options?.audioMimeType } : {},
742
- processing: options?.processing,
742
+ processing: !!options?.processing,
743
743
  model: options?.model,
744
744
  };
745
745
  };
@@ -1346,10 +1346,10 @@ const resetSession = async (sessionId, options) => {
1346
1346
  const packResult = resp => {
1347
1347
  const result = {
1348
1348
  ...resp, spoken: renderText(
1349
- resp.markdown, { noCode: true, noLink: true }
1349
+ resp.text, { noCode: true, noLink: true }
1350
1350
  ).replace(/\[\^\d\^\]/ig, ''),
1351
1351
  };
1352
- log(`Response (${result.model}): ${JSON.stringify(result.markdown)}`);
1352
+ log(`Response (${result.model}): ${JSON.stringify(result.text)}`);
1353
1353
  // log(result);
1354
1354
  return result;
1355
1355
  };
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": "1998.2.41",
4
+ "version": "1998.2.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": "1998.2.41",
4
+ "version": "1998.2.42",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",