utilitas 1999.1.42 → 1999.1.44

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
@@ -135,7 +135,8 @@ const MODELS = {
135
135
  [GPT_45]: { ...OPENAI_RULES, ...OPENAI_S1 },
136
136
  [GPT_O1]: { ...OPENAI_RULES, ...OPENAI_S2, reasoning: true },
137
137
  [GPT_O3_MINI]: {
138
- ...OPENAI_RULES, ...OPENAI_S2, fast: true, reasoning: true,
138
+ ...OPENAI_RULES, ...OPENAI_S2,
139
+ fast: true, reasoning: true, vision: GPT_O1,
139
140
  },
140
141
  [GEMINI_20_FLASH]: {
141
142
  ...GEMINI_RULES, contextWindow: m(1), maxOutputTokens: k(8),
@@ -162,7 +163,7 @@ const MODELS = {
162
163
  reasoning: true,
163
164
  },
164
165
  [SF_DEEPSEEK_V3]: {
165
- contextWindow: kT(128), maxOutputTokens: k(8),
166
+ contextWindow: kT(64), maxOutputTokens: k(8),
166
167
  defaultProvider: SILICONFLOW,
167
168
  },// ERROR: column cannot have more than 2000 dimensions for hnsw index
168
169
  [TEXT_EMBEDDING_3_LARGE]: { ...OPENAI_EBD, dimension: k(3) },
@@ -581,6 +582,9 @@ const buildGptMessage = (content, options) => {
581
582
  const attachments = (options?.attachments || []).map(x => {
582
583
  assert(MODELS[options?.model], 'Model is required.');
583
584
  if (MODELS[options.model]?.supportedMimeTypes?.includes?.(x.mime_type)) {
585
+ if (String.isString(MODELS[options.model]?.vision)) {
586
+ alterModel = MODELS[options.model]?.vision;
587
+ }
584
588
  return { type: 'image_url', image_url: { url: x.url, detail: 'high' } };
585
589
  } else if (MODELS[options.model]?.supportedAudioTypes?.includes?.(x.mime_type)) {
586
590
  alterModel = selectGptAudioModel(options);
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.42",
4
+ "version": "1999.1.44",
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.42",
4
+ "version": "1999.1.44",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",