utilitas 2000.3.6 → 2000.3.8

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
@@ -145,7 +145,7 @@ const MODELS = {
145
145
  },
146
146
  // models with unique capabilities
147
147
  [GEMINI_30_PRO_IMAGE]: {
148
- ...GEMINI_RULES, icon: '🍌', label: 'Nano Banana',
148
+ ...GEMINI_RULES, icon: '🍌', label: 'Nano Banana Pro',
149
149
  contextWindow: k(64), maxOutputTokens: k(32),
150
150
  fast: true, image: true,
151
151
  },
@@ -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.6",
4
+ "version": "2000.3.8",
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.6",
4
+ "version": "2000.3.8",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",