utilitas 2000.3.10 → 2000.3.14
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 +2 -0
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +10 -5
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -152,7 +152,7 @@ const MODELS = {
|
|
|
152
152
|
[GPT_51_CODEX]: { ...OPENAI_RULES },
|
|
153
153
|
[GPT_5_IMAGE]: { ...OPENAI_RULES, image: true },
|
|
154
154
|
[JINA_DEEPSEARCH]: { // @todo: parse more details from results, eg: "reed urls".
|
|
155
|
-
|
|
155
|
+
icon: '✴️', contextWindow: Infinity, maxInputTokens: Infinity,
|
|
156
156
|
maxOutputTokens: Infinity, imageCostTokens: 0, maxImageSize: Infinity,
|
|
157
157
|
supportedMimeTypes: [MIME_PNG, MIME_JPEG, MIME_TEXT, MIME_WEBP, MIME_PDF],
|
|
158
158
|
reasoning: true, json: true, vision: true,
|
|
@@ -172,7 +172,7 @@ const MODELS = {
|
|
|
172
172
|
},
|
|
173
173
|
// best local model
|
|
174
174
|
[GEMMA_3_27B]: {
|
|
175
|
-
|
|
175
|
+
icon: '❇️', contextWindow: kT(128), maxOutputTokens: k(8),
|
|
176
176
|
imageCostTokens: 256, maxImageSize: 896 * 896,
|
|
177
177
|
supportedMimeTypes: [MIME_PNG, MIME_JPEG, MIME_GIF],
|
|
178
178
|
fast: true, json: true, vision: true,
|
|
@@ -602,13 +602,13 @@ const packResp = async (resp, options) => {
|
|
|
602
602
|
if (options?.raw) { return resp; }
|
|
603
603
|
let [
|
|
604
604
|
txt, audio, images, annotations, simpleText, annotationsMarkdown, end,
|
|
605
|
-
json, audioMimeType,
|
|
605
|
+
json, audioMimeType, catched,
|
|
606
606
|
] = [
|
|
607
607
|
resp.text || '', // ChatGPT / Claude / Gemini / Ollama
|
|
608
608
|
resp?.audio?.data, // ChatGPT audio mode
|
|
609
609
|
resp?.images || [], // Gemini images via Openrouter
|
|
610
610
|
resp?.references, // Gemini references
|
|
611
|
-
'', '', '', null, MIME_PCM16
|
|
611
|
+
'', '', '', null, MIME_PCM16, new Set(),
|
|
612
612
|
];
|
|
613
613
|
simpleText = txt;
|
|
614
614
|
while ((end = getInfoEnd(simpleText))) {
|
|
@@ -697,7 +697,12 @@ const packResp = async (resp, options) => {
|
|
|
697
697
|
model: [
|
|
698
698
|
options.provider, options?.router?.provider,
|
|
699
699
|
options?.router?.model || options?.model,
|
|
700
|
-
].
|
|
700
|
+
].join('/').split('/').map(x => {
|
|
701
|
+
const key = ensureString(x, { case: 'UP' });
|
|
702
|
+
if (catched.has(key)) { return null; }
|
|
703
|
+
catched.add(key);
|
|
704
|
+
return x;
|
|
705
|
+
}).filter(x => x).join('/'),
|
|
701
706
|
};
|
|
702
707
|
};
|
|
703
708
|
|
package/lib/manifest.mjs
CHANGED