utilitas 2000.3.5 → 2000.3.7

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
@@ -956,7 +956,7 @@ const initChat = async (options = {}) => {
956
956
  options.instructions && (chatConfig.systemPrompt = options.instructions);
957
957
  // Use Gemini instead of ChatGPT because of the longer package.
958
958
  const [spTokens, ais] = await Promise.all([countTokens([buildMessage(
959
- options.systemPrompt, system
959
+ chatConfig.systemPrompt, system
960
960
  )]), getAi(null, { all: true })]);
961
961
  for (const ai of ais) {
962
962
  const mxPmpt = ai.model.maxInputTokens / 2;
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.5",
4
+ "version": "2000.3.7",
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.5",
4
+ "version": "2000.3.7",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",