llm-models 1.2.3 → 1.2.5
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/build/index.js +4 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -40937,7 +40937,7 @@ var {
|
|
|
40937
40937
|
// package.json
|
|
40938
40938
|
var package_default = {
|
|
40939
40939
|
name: "llm-models",
|
|
40940
|
-
version: "1.2.
|
|
40940
|
+
version: "1.2.4",
|
|
40941
40941
|
author: "maxgfr",
|
|
40942
40942
|
license: "MIT",
|
|
40943
40943
|
type: "module",
|
|
@@ -41383,7 +41383,7 @@ function runCommand() {
|
|
|
41383
41383
|
}
|
|
41384
41384
|
console.log(JSON.stringify(data, null, 2));
|
|
41385
41385
|
});
|
|
41386
|
-
program2.command("find").description("Discover models across both APIs with smart filtering").option("-p, --provider <id>", "Filter by provider").option("-C, --capability <cap>", "Filter by capability: reasoning, tool_call, structured_output, open_weights, attachment").option("-m, --modality <mod>", "Filter by input modality (e.g. image, audio, video, pdf)").option("--max-cost <n>", "Max input cost ($/million tokens)", Number.parseFloat).option("--max-cost-output <n>", "Max output cost ($/million tokens)", Number.parseFloat).option("--min-context <n>", "Min context window size", Number.parseInt).option("-s, --search <term>", "Search by name or ID").option("--status <status>", "Filter by status: active, beta, deprecated").option("-f, --family <name>", "Filter by model family (e.g. gpt, claude, gemini)").option("--sort <field>", "Sort by: cost_input, cost_output, context_length, release_date, name, knowledge_cutoff, value").option("--desc", "Sort descending").option("-n, --limit <n>", "Max results (default: 20)", Number.parseInt, 20).option("-c, --count", "Show model count only").option("--ids-only", "Output model IDs only, one per line").option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (options) => {
|
|
41386
|
+
program2.command("find").description("Discover models across both APIs with smart filtering").option("-p, --provider <id>", "Filter by provider").option("-C, --capability <cap>", "Filter by capability: reasoning, tool_call, structured_output, open_weights, attachment").option("-m, --modality <mod>", "Filter by input modality (e.g. image, audio, video, pdf)").option("--max-cost <n>", "Max input cost ($/million tokens)", Number.parseFloat).option("--max-cost-output <n>", "Max output cost ($/million tokens)", Number.parseFloat).option("--min-context <n>", "Min context window size", Number.parseInt).option("-s, --search <term>", "Search by name or ID").option("--status <status>", "Filter by status: active, beta, deprecated").option("-f, --family <name>", "Filter by model family (e.g. gpt, claude, gemini)").option("--sort <field>", "Sort by: cost_input, cost_output, context_length, release_date, name, knowledge_cutoff, value").option("--desc", "Sort descending").option("-n, --limit <n>", "Max results (default: 20)", (v) => Number.parseInt(v, 10), 20).option("-c, --count", "Show model count only").option("--ids-only", "Output model IDs only, one per line").option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (options) => {
|
|
41387
41387
|
const start = Date.now();
|
|
41388
41388
|
const filter = {
|
|
41389
41389
|
provider: options.provider,
|
|
@@ -41580,7 +41580,7 @@ ${bold("Models")} (${provider.model_count}):`);
|
|
|
41580
41580
|
});
|
|
41581
41581
|
outputFormatted(fmt, headers, rows, estimates);
|
|
41582
41582
|
});
|
|
41583
|
-
program2.command("cheapest").description("Find the cheapest models matching your criteria").option("-C, --capability <cap>", "Filter by capability: reasoning, tool_call, structured_output, open_weights, attachment").option("--min-context <n>", "Min context window size", Number.parseInt).option("-n, --limit <n>", "Max results (default: 10)", Number.parseInt, 10).option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (options) => {
|
|
41583
|
+
program2.command("cheapest").description("Find the cheapest models matching your criteria").option("-C, --capability <cap>", "Filter by capability: reasoning, tool_call, structured_output, open_weights, attachment").option("--min-context <n>", "Min context window size", Number.parseInt).option("-n, --limit <n>", "Max results (default: 10)", (v) => Number.parseInt(v, 10), 10).option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (options) => {
|
|
41584
41584
|
const models = await cheapestModels({
|
|
41585
41585
|
capability: options.capability,
|
|
41586
41586
|
minContext: options.minContext,
|
|
@@ -41692,7 +41692,7 @@ ${ids.map((id) => ` - ${id}`).join(`
|
|
|
41692
41692
|
console.log();
|
|
41693
41693
|
console.log(dim(`Sources: ${[model.sources.openrouter ? "OpenRouter" : "", model.sources.models_dev ? "models.dev" : ""].filter(Boolean).join(", ")}`));
|
|
41694
41694
|
});
|
|
41695
|
-
program2.command("recommend").description("Get model recommendations for a use case").argument("[use-case]", "Use case: code-gen, vision, cheap-chatbot, reasoning, long-context, open-source, audio, tool-use").option("--max-cost <n>", "Max input cost budget ($/M tokens)", Number.parseFloat).option("--min-context <n>", "Min context window", Number.parseInt).option("-n, --limit <n>", "Max results (default: 10)", Number.parseInt, 10).option("--list", "List available use cases").option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (useCase, options) => {
|
|
41695
|
+
program2.command("recommend").description("Get model recommendations for a use case").argument("[use-case]", "Use case: code-gen, vision, cheap-chatbot, reasoning, long-context, open-source, audio, tool-use").option("--max-cost <n>", "Max input cost budget ($/M tokens)", Number.parseFloat).option("--min-context <n>", "Min context window", Number.parseInt).option("-n, --limit <n>", "Max results (default: 10)", (v) => Number.parseInt(v, 10), 10).option("--list", "List available use cases").option("--json", "Output raw JSON").option("--format <fmt>", "Output format: table, json, csv, markdown").action(async (useCase, options) => {
|
|
41696
41696
|
if (options.list || !useCase) {
|
|
41697
41697
|
const useCases = listUseCases();
|
|
41698
41698
|
console.log(bold(`Available use cases:
|