utilitas 1999.1.23 → 1999.1.24
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/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +7 -3
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -187,7 +187,7 @@ const MODELS = {
|
|
|
187
187
|
maxImagePerPrompt: 100, maxImageSize: 2000 * 2000,
|
|
188
188
|
supportedMimeTypes: [png, jpeg, gif, webp, pdf],
|
|
189
189
|
json: true, reasoning: true, tools: true, vision: true,
|
|
190
|
-
defaultProvider: ANTHROPIC,
|
|
190
|
+
defaultProvider: [ANTHROPIC, VERTEX_ANTHROPIC],
|
|
191
191
|
}, // https://docs.anthropic.com/en/docs/build-with-claude/vision
|
|
192
192
|
};
|
|
193
193
|
|
|
@@ -386,9 +386,13 @@ const init = async (options = {}) => {
|
|
|
386
386
|
const provider = unifyProvider(options?.provider);
|
|
387
387
|
let models;
|
|
388
388
|
if (options.model === '*') { // All models
|
|
389
|
-
models = Object.values(MODELS).filter(
|
|
389
|
+
models = Object.values(MODELS).filter(
|
|
390
|
+
x => ensureArray(x.defaultProvider).includes(provider)
|
|
391
|
+
);
|
|
390
392
|
} else if (options.model) { // Specific model
|
|
391
|
-
models = Object.values(MODELS).filter(
|
|
393
|
+
models = Object.values(MODELS).filter(
|
|
394
|
+
x => ensureArray(options.model).includes(x.name)
|
|
395
|
+
);
|
|
392
396
|
} else if (DEFAULT_MODELS[provider]) { // Default model
|
|
393
397
|
models = [MODELS[DEFAULT_MODELS[provider]]];
|
|
394
398
|
} else if (options.modelConfig) {
|
package/lib/manifest.mjs
CHANGED