utilitas 2000.3.52 → 2000.3.54
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/README.md +1 -1
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +5 -5
- package/lib/manifest.mjs +1 -1
- package/lib/utilitas.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const _NEED = ['js-tiktoken', 'OpenAI', '@google/genai'];
|
|
|
45
45
|
const [
|
|
46
46
|
OPENAI, GOOGLE, OLLAMA, NOVA, DEEPSEEK_32, MD_CODE, CLOUD_OPUS_45, AUDIO,
|
|
47
47
|
WAV, OPENAI_VOICE, GPT_REASONING_EFFORT, THINK, THINK_STR, THINK_END,
|
|
48
|
-
TOOLS_STR, TOOLS_END, TOOLS, TEXT, OK, FUNC,
|
|
48
|
+
TOOLS_STR, TOOLS_END, TOOLS, TEXT, OK, FUNC, GPT_52, GPT_51_CODEX,
|
|
49
49
|
GPT_5_IMAGE, GEMMA_3_27B, ANTHROPIC, v8k, ais, MAX_TOOL_RECURSION, LOG,
|
|
50
50
|
name, user, system, assistant, MODEL, JSON_OBJECT, tokenSafeRatio,
|
|
51
51
|
PROMPT_IS_REQUIRED, OPENAI_HI_RES_SIZE, k, kT, m, minute, hour, gb,
|
|
@@ -59,7 +59,7 @@ const [
|
|
|
59
59
|
'OpenAI', 'Google', 'Ollama', 'nova', 'deepseek-3.2-speciale', '```',
|
|
60
60
|
'claude-opus-4.5', 'audio', 'wav', 'OPENAI_VOICE', 'medium', 'think',
|
|
61
61
|
'<think>', '</think>', '<tools>', '</tools>', 'tools', 'text', 'OK',
|
|
62
|
-
'function', 'gpt-5.
|
|
62
|
+
'function', 'gpt-5.2', 'gpt-5.1-codex', 'gpt-5-image', 'gemma3:27b',
|
|
63
63
|
'Anthropic', 7680 * 4320, [], 30, { log: true }, 'Alan', 'user',
|
|
64
64
|
{ role: 'system' }, 'assistant', 'model', 'json_object', 1.1,
|
|
65
65
|
'Prompt is required.', 2048 * 2048, x => 1024 * x, x => 1000 * x,
|
|
@@ -137,7 +137,7 @@ const MODELS = {
|
|
|
137
137
|
// https://gemini.google.com/app/c680748b3307790b
|
|
138
138
|
},
|
|
139
139
|
// strong and fast
|
|
140
|
-
[
|
|
140
|
+
[GPT_52]: { ...OPENAI_RULES, fast: true },
|
|
141
141
|
// stronger but slow
|
|
142
142
|
[GEMINI_30_PRO]: {
|
|
143
143
|
...GEMINI_RULES, contextWindow: m(1), maxOutputTokens: k(64),
|
|
@@ -229,7 +229,7 @@ for (const n in MODELS) {
|
|
|
229
229
|
}
|
|
230
230
|
// Auto model have some issues with tools and reasoning, so we disable them here
|
|
231
231
|
// MODELS[AUTO] = { name: AUTO, defaultProvider: OPENROUTER, };
|
|
232
|
-
// for (const n of [
|
|
232
|
+
// for (const n of [GPT_52, GPT_51_CODEX, GEMINI_30_PRO, GEMINI_25_FLASH]) {
|
|
233
233
|
// // get the most restrictive limits
|
|
234
234
|
// for (const key of [
|
|
235
235
|
// 'contextWindow', 'maxInputTokens', 'maxDocumentFile', 'maxAudioLength',
|
|
@@ -1425,7 +1425,7 @@ export {
|
|
|
1425
1425
|
GEMINI_25_PRO_TTS,
|
|
1426
1426
|
GEMINI_30_PRO_IMAGE,
|
|
1427
1427
|
GPT_5_IMAGE,
|
|
1428
|
-
|
|
1428
|
+
GPT_52,
|
|
1429
1429
|
IMAGEN_4_ULTRA,
|
|
1430
1430
|
INSTRUCTIONS,
|
|
1431
1431
|
MODELS,
|
package/lib/manifest.mjs
CHANGED
package/lib/utilitas.mjs
CHANGED
|
@@ -494,7 +494,7 @@ const humanReadableBoolean = any => [
|
|
|
494
494
|
'✓', '1', '10-4', 'AYE', 'COOL', 'DO', 'ENABLE', 'ENABLED', 'ENGAGE',
|
|
495
495
|
'ENGAGED', 'GOOD', 'GREAT', 'JA', 'OK', 'OKEY', 'ON', 'RIGHT', 'RIGHTO',
|
|
496
496
|
'ROGER', 'SURE', 'TRUE', 'YEP', 'YEPPERS', 'YES', 'YUP', 'YUPPERS', '好',
|
|
497
|
-
'对', '對', '开', '开启', '是', '開', '開啟', '🔊',
|
|
497
|
+
'对', '對', '开', '开启', '是', '開', '開啟', '🔊', '🐵',
|
|
498
498
|
].includes(ensureString(any, { case: 'UP' }));
|
|
499
499
|
|
|
500
500
|
const parseVersion = (verstr) => {
|