utilitas 1998.2.12 → 1998.2.13

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
@@ -1095,10 +1095,10 @@ const distillFile = async (attachments, o) => {
1095
1095
  '- For images or video files that are not primarily text-based, describe the tragic scene you observe, highlight key details, convey the emotional tone of the setting, and share your impressions.',
1096
1096
  '- For video files, please describe the content, including the theme, subjects, characters, scenes, objects, storyline, and emotional tone.',
1097
1097
  '- Please RETURN ONLY your analysis results without including your thought process or other unrelated information.',
1098
- o.summarize ? '- Please organize the key content of this document, systematically present the key information it contains in a concise summary, and remove any unimportant filler content, ONLY return the summary.' : '',
1099
- o.toLanguage ? `- Please return the results in ${o.toLanguage}.` : '',
1100
- o.keepPaging ? '' : '- If the document has multiple pages, merge them into one page. Please do not return any paging information.',
1101
- o.keepDecoration ? '' : '- If the document has side notes, headers, footers, or watermarks, please ignore them.',
1098
+ o?.summarize ? '- Please organize the key content of this document, systematically present the key information it contains in a concise summary, and remove any unimportant filler content, ONLY return the summary.' : '',
1099
+ o?.toLanguage ? `- Please return the results in ${o?.toLanguage}.` : '',
1100
+ o?.keepPaging ? '' : '- If the document has multiple pages, merge them into one page. Please do not return any paging information.',
1101
+ o?.keepDecoration ? '' : '- If the document has side notes, headers, footers, or watermarks, please ignore them.',
1102
1102
  ].filter(x => x).join('\n');
1103
1103
  attachments = ensureArray(attachments);
1104
1104
  for (const i in attachments) {
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.12",
4
+ "version": "1998.2.13",
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.12",
4
+ "version": "1998.2.13",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",