utilitas 2000.3.36 → 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
@@ -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.36",
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.36",
4
+ "version": "2000.3.37",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",