utilitas 2000.3.35 → 2000.3.37

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
@@ -634,7 +634,7 @@ const buildMessage = async (content, options) => {
634
634
  } : content;
635
635
  message.content || (message.content = []);
636
636
  attachments.map(x => message.content.push(x));
637
- assertContent(message.content);
637
+ assertPrompt(message.content);
638
638
  return message;
639
639
  };
640
640
 
@@ -1347,8 +1347,8 @@ const stt = async (audio, options = {}) => await distillFile(
1347
1347
 
1348
1348
  const prompt = async (input, options = {}) => {
1349
1349
  const ai = await getAi(options?.aiId, options);
1350
- const tag = `${ai.provider} (${ai.model.name})`;
1351
- options.log && log(`Prompt ${tag}: ${JSON.stringify(input)}`);
1350
+ const tag = packModelLabel([ai.provider, ai.model.source, ai.model.name]);
1351
+ options.log && log(`Prompt ${tag}: ${JSON.stringify(input || '[ATTACHMENTS]')}`);
1352
1352
  const resp = await ai.prompt(input, options);
1353
1353
  options.log && log(`Response ${tag}: ${JSON.stringify(resp.text)}`);
1354
1354
  return resp;
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.35",
4
+ "version": "2000.3.37",
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.35",
4
+ "version": "2000.3.37",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",