utilitas 2001.1.79 → 2001.1.81

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
@@ -51,7 +51,7 @@ const [
51
51
  user, system, assistant, JSON_OBJECT, PROMPT_IS_REQUIRED, k, trimTailing,
52
52
  trimBeginning, GEMINI_30_PRO_IMAGE, IMAGE, JINA, JINA_DEEPSEARCH,
53
53
  SILICONFLOW, SF_DEEPSEEK_32, OPENROUTER_API, OPENROUTER, AUTO, TOOL, ONLINE,
54
- GEMINI_30_PRO, GEMINI_25_FLASH, IMAGEN_4_ULTRA, VEO_31, IMAGEN_4_UPSCALE,
54
+ GEMINI_30_PRO, GEMINI_30_FLASH, IMAGEN_4_ULTRA, VEO_31, IMAGEN_4_UPSCALE,
55
55
  ERROR_GENERATING, GEMINI_25_FLASH_TTS, GEMINI_25_PRO_TTS, wav,
56
56
  GPT_4O_MIMI_TTS, GPT_4O_TRANSCRIBE, INVALID_AUDIO, OGG_EXT, ELLIPSIS,
57
57
  TOP_LIMIT, ATTACHMENT, PROCESSING, CURSOR, LN1, LN2, TOP, DEEPSEEK
@@ -67,7 +67,7 @@ const [
67
67
  'Jina', 'jina-deepsearch-v1', 'SiliconFlow',
68
68
  'deepseek-ai/DeepSeek-V3.2-exp', 'https://openrouter.ai/api/v1',
69
69
  'OpenRouter', 'openrouter/auto', 'tool', ':online',
70
- 'gemini-3-pro-preview', 'gemini-2.5-flash-preview-09-2025',
70
+ 'gemini-3-pro-preview', 'gemini-3-flash-preview',
71
71
  'imagen-4.0-ultra-generate-001', 'veo-3.1-generate-preview',
72
72
  'imagen-4.0-upscale-preview', 'Error generating content.',
73
73
  'gemini-2.5-flash-preview-tts', 'gemini-2.5-pro-tts', 'wav',
@@ -136,7 +136,7 @@ const DEEPSEEK_32_RULES = {
136
136
  // https://openrouter.ai/docs/features/multimodal/audio (only support input audio)
137
137
  const MODELS = {
138
138
  // fast and balanced models
139
- [GEMINI_25_FLASH]: { // https://gemini.google.com/app/c680748b3307790b
139
+ [GEMINI_30_FLASH]: { // https://gemini.google.com/app/c680748b3307790b
140
140
  ...GEMINI_RULES, fast: true, json: false, // issue with json output via OpenRouter
141
141
  },
142
142
  // strong and fast
@@ -222,7 +222,7 @@ for (const n in MODELS) {
222
222
  }
223
223
  // Auto model have some issues with tools and reasoning, so we disable them here
224
224
  // MODELS[AUTO] = { name: AUTO, defaultProvider: OPENROUTER, };
225
- // for (const n of [GPT_52, GPT_51_CODEX, GEMINI_30_PRO, GEMINI_25_FLASH]) {
225
+ // for (const n of [GPT_52, GPT_51_CODEX, GEMINI_30_PRO, GEMINI_30_FLASH]) {
226
226
  // // get the most restrictive limits
227
227
  // for (const key of [
228
228
  // 'contextWindow', 'maxInputTokens', 'maxOutputTokens',
@@ -259,7 +259,7 @@ for (const n in MODELS) {
259
259
 
260
260
  // Default models for each provider
261
261
  const DEFAULT_MODELS = {
262
- [OPENROUTER]: GEMINI_25_FLASH,
262
+ [OPENROUTER]: GEMINI_30_FLASH,
263
263
  [SILICONFLOW]: SF_DEEPSEEK_32,
264
264
  [JINA]: JINA_DEEPSEARCH,
265
265
  [OLLAMA]: GEMMA_3_27B,
@@ -1503,7 +1503,7 @@ export {
1503
1503
  FEATURE_ICONS,
1504
1504
  FUNCTION,
1505
1505
  GEMINI_25_FLASH_TTS,
1506
- GEMINI_25_FLASH,
1506
+ GEMINI_30_FLASH,
1507
1507
  GEMINI_25_PRO_TTS,
1508
1508
  GEMINI_30_PRO_IMAGE,
1509
1509
  GPT_5_IMAGE,
package/lib/bot.mjs CHANGED
@@ -9,10 +9,10 @@ const sendMd = (cId, cnt, opt) => send(cId, cnt, { parse_mode, ...opt || {} });
9
9
 
10
10
  const [ // https://limits.tginfo.me/en
11
11
  BOT_SEND, provider, signals, MESSAGE_LENGTH_LIMIT, EMOJI_THINKING,
12
- PARSE_MODE_MD, BOT
12
+ PARSE_MODE_MD, PARSE_MODE_MD_V2, BOT
13
13
  ] = [
14
14
  'BOT_SEND', 'TELEGRAM', ['SIGINT', 'SIGTERM'], parseInt(4096 * 0.93), // ~= 3800
15
- '💬', 'Markdown', '🤖',
15
+ '💬', 'Markdown', 'MarkdownV2', '🤖',
16
16
  ];
17
17
 
18
18
  const parse_mode = PARSE_MODE_MD;
@@ -97,9 +97,11 @@ const init = async (options) => {
97
97
  export default init;
98
98
  export {
99
99
  _NEED,
100
+ BOT,
100
101
  EMOJI_THINKING,
101
102
  MESSAGE_LENGTH_LIMIT,
102
- BOT,
103
+ PARSE_MODE_MD_V2,
104
+ PARSE_MODE_MD,
103
105
  end,
104
106
  init,
105
107
  lines,
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": "2001.1.79",
4
+ "version": "2001.1.81",
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": "2001.1.79",
4
+ "version": "2001.1.81",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",