utilitas 1999.1.95 → 1999.1.97

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
@@ -52,7 +52,7 @@ const [
52
52
  MAX_TOOL_RECURSION, LOG, name, user, system, assistant, MODEL, JSON_OBJECT,
53
53
  tokenSafeRatio, CONTENT_IS_REQUIRED, OPENAI_HI_RES_SIZE, k, kT, m, minute,
54
54
  hour, gb, trimTailing, GEMINI_25_FLASH_IMAGE, IMAGE, JINA, JINA_DEEPSEARCH,
55
- GEMINI_25_PRO, SILICONFLOW, SF_DEEPSEEK_R1, MAX_TIRE, OPENROUTER_API,
55
+ GEMINI_30_PRO, SILICONFLOW, SF_DEEPSEEK_R1, MAX_TIRE, OPENROUTER_API,
56
56
  OPENROUTER, AUTO, TOOL,
57
57
  ] = [
58
58
  'OpenAI', 'Gemini', 'Ollama', 'gemini-2.5-flash-preview-09-2025',
@@ -65,7 +65,7 @@ const [
65
65
  x => 1024 * x, x => 1000 * x, x => 1024 * 1024 * x, x => 60 * x,
66
66
  x => 60 * 60 * x, x => 1024 * 1024 * 1024 * x,
67
67
  x => x.replace(/[\.\s]*$/, ''), 'gemini-2.5-flash-image', 'image',
68
- 'Jina', 'jina-deepsearch-v1', 'gemini-2.5-pro', 'SiliconFlow',
68
+ 'Jina', 'jina-deepsearch-v1', 'gemini-3-pro-preview', 'SiliconFlow',
69
69
  'Pro/deepseek-ai/DeepSeek-R1', 768 * 768,
70
70
  'https://openrouter.ai/api/v1', 'OpenRouter', 'openrouter/auto', 'tool',
71
71
  ];
@@ -136,7 +136,7 @@ const MODELS = {
136
136
  ...GEMINI_RULES, contextWindow: m(1), maxOutputTokens: k(64),
137
137
  fast: true, reasoning: true, tools: true,
138
138
  },
139
- [GEMINI_25_PRO]: {
139
+ [GEMINI_30_PRO]: {
140
140
  ...GEMINI_RULES, contextWindow: m(1), maxOutputTokens: k(64),
141
141
  reasoning: true, tools: true,
142
142
  },
@@ -185,7 +185,7 @@ for (const n in MODELS) {
185
185
  ) : MODELS[n].imageCostTokens;
186
186
  }
187
187
  MODELS[AUTO] = { name: AUTO, defaultProvider: OPENROUTER, };
188
- for (const n of [GPT_51, GPT_51_CODEX, GEMINI_25_PRO, GEMINI_25_FLASH]) {
188
+ for (const n of [GPT_51, GPT_51_CODEX, GEMINI_30_PRO, GEMINI_25_FLASH]) {
189
189
  // get the most restrictive limits
190
190
  for (const key of [
191
191
  'contextWindow', 'maxInputTokens', 'maxDocumentFile', 'maxAudioLength',
@@ -823,7 +823,7 @@ const promptOpenAI = async (aiId, content, options = {}) => {
823
823
  reasoning_effort: options.reasoning_effort,
824
824
  });
825
825
  for await (event of resp) {
826
- print(JSON.stringify(event, null, 2));
826
+ // print(JSON.stringify(event, null, 2));
827
827
  event = event?.choices?.[0] || {};
828
828
  const delta = event.delta || {};
829
829
  let [delteReasoning, deltaText] = [
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": "1999.1.95",
4
+ "version": "1999.1.97",
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": "1999.1.95",
4
+ "version": "1999.1.97",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",