@funkai/models 0.3.1 → 0.3.2
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/.turbo/turbo-build.log +7 -6
- package/CHANGELOG.md +30 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-models.ts +108 -106
- package/src/catalog/index.ts +1 -0
- package/src/provider/registry.ts +20 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @funkai/models@0.3.
|
|
2
|
+
> @funkai/models@0.3.2 build /home/runner/work/funkai/funkai/packages/models
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.21.4[22m powered by rolldown [2mv1.0.0-rc.9[22m
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mℹ[39m target: [34mnode22[39m
|
|
9
9
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
10
10
|
[34mℹ[39m Build start
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m 6.09 kB[22m [2m│ gzip: 2.27 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mproviders/amazon-bedrock.mjs[22m [2m 1.03 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mproviders/google-vertex.mjs[22m [2m 1.02 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mproviders/fireworks-ai.mjs[22m [2m 1.00 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
[34mℹ[39m [2mdist/[22mgoogle-vertex-DbS-zTGD.mjs [2m 12.42 kB[22m [2m│ gzip: 1.25 kB[22m
|
|
53
53
|
[34mℹ[39m [2mdist/[22mtogetherai-BvcxUfPE.mjs.map [2m 12.26 kB[22m [2m│ gzip: 1.57 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22mgroq-ei_PerYi.mjs.map [2m 11.99 kB[22m [2m│ gzip: 1.49 kB[22m
|
|
55
|
+
[34mℹ[39m [2mdist/[22mindex.mjs.map [2m 11.78 kB[22m [2m│ gzip: 3.62 kB[22m
|
|
55
56
|
[34mℹ[39m [2mdist/[22mdeepinfra-B0GxUwCG.mjs [2m 11.13 kB[22m [2m│ gzip: 1.26 kB[22m
|
|
56
|
-
[34mℹ[39m [2mdist/[22mindex.mjs.map [2m 11.01 kB[22m [2m│ gzip: 3.35 kB[22m
|
|
57
57
|
[34mℹ[39m [2mdist/[22manthropic-yB7ST97_.mjs [2m 10.72 kB[22m [2m│ gzip: 0.86 kB[22m
|
|
58
58
|
[34mℹ[39m [2mdist/[22mfireworks-ai-DJYvdAi_.mjs.map [2m 10.07 kB[22m [2m│ gzip: 1.37 kB[22m
|
|
59
59
|
[34mℹ[39m [2mdist/[22mmistral-BI9MdAO4.mjs [2m 10.05 kB[22m [2m│ gzip: 1.00 kB[22m
|
|
@@ -142,8 +142,9 @@
|
|
|
142
142
|
[34mℹ[39m [2mdist/[22m[32mtypes-DIzolT_s.d.mts[39m [2m 2.58 kB[22m [2m│ gzip: 0.92 kB[22m
|
|
143
143
|
[34mℹ[39m 132 files, total: 2.63 MB
|
|
144
144
|
[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
145
|
-
- rolldown-plugin-dts:fake-js (
|
|
146
|
-
- rolldown-plugin-dts:resolver (
|
|
145
|
+
- rolldown-plugin-dts:fake-js (41%)
|
|
146
|
+
- rolldown-plugin-dts:resolver (34%)
|
|
147
|
+
- rolldown-plugin-dts:generate (16%)
|
|
147
148
|
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
148
149
|
|
|
149
|
-
[32m✔[39m Build complete in [
|
|
150
|
+
[32m✔[39m Build complete in [32m4000ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @funkai/models
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b1e1d01: Fix bug and correctness issues across all packages.
|
|
8
|
+
|
|
9
|
+
**@funkai/agents**
|
|
10
|
+
|
|
11
|
+
- Export `createFlowEngine` and related types (`FlowEngineConfig`, `FlowFactory`, `CustomStepFactory`, `CustomStepDefinitions`, `TypedCustomSteps`)
|
|
12
|
+
- Guard `resolvedInput` before passing to `onError` hooks (was `undefined` cast as `TInput`)
|
|
13
|
+
- Fix `onStepStart` hook asymmetry: per-call override now merged with config hook
|
|
14
|
+
- Remove deprecated unused `TraceType` alias
|
|
15
|
+
|
|
16
|
+
**@funkai/prompts**
|
|
17
|
+
|
|
18
|
+
- **Breaking:** `strictFilters` and `ownPropertyOnly` removed from `CreateEngineOptions` (now enforced as non-overridable safety defaults)
|
|
19
|
+
|
|
20
|
+
**@funkai/models**
|
|
21
|
+
|
|
22
|
+
- Add `provider/model` format validation for model IDs
|
|
23
|
+
- Wrap `languageModel()` errors with model ID context
|
|
24
|
+
|
|
25
|
+
**@funkai/cli**
|
|
26
|
+
|
|
27
|
+
- Fix `$`-substitution bug in `flattenPartials` (`String.replace` function-form)
|
|
28
|
+
- Add error context for partial render failures
|
|
29
|
+
- `readJsonFile` now throws on malformed JSON instead of silently returning `{}`
|
|
30
|
+
- Replace naive YAML line parsing with proper `yaml` parser
|
|
31
|
+
- Extract `Liquid` engine to module-level singleton in `extractVariables`
|
|
32
|
+
|
|
3
33
|
## 0.3.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/catalog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EAAQ,sBAAA,GAAyB,gBAAA;;;;;;;;AH1CxE;UI/BiB,SAAA;;WAEN,KAAA;;WAGA,MAAA;;WAGA,SAAA;;WAGA,UAAA;;WAGA,SAAA;;WAGA,KAAA;AAAA;;;;;AJcX;;;;;;;;;;;;;;;;;;;;;;;;;;;iBKJgB,aAAA,CAAc,KAAA,EAAO,UAAA,EAAY,OAAA,EAAS,YAAA,GAAe,SAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/catalog/providers/index.ts","../src/catalog/index.ts","../src/provider/types.ts","../src/provider/registry.ts","../src/cost/types.ts","../src/cost/calculate.ts"],"mappings":";;;;;cAqCa,QAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A;;WAGA,WAAA;;WAGA,eAAA;;WAGA,gBAAA;;WAGA,eAAA;AAAA;;;;;AFAX;;;KGnBK,WAAA,GAAc,UAAA,QAAkB,wBAAA;;;;UAKpB,sBAAA;;;;;;;;;;;;;;;;;;;;WAoBN,SAAA,EAAW,WAAA;AAAA;;;;;;;;;;;;KAcV,gBAAA,IAAoB,OAAA,EAAS,OAAA,KAAY,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BrC,sBAAA,CAAuB,MAAA,EAAQ,sBAAA,GAAyB,gBAAA;;;;;;;;AHlDxE;UI/BiB,SAAA;;WAEN,KAAA;;WAGA,MAAA;;WAGA,SAAA;;WAGA,UAAA;;WAGA,SAAA;;WAGA,KAAA;AAAA;;;;;AJcX;;;;;;;;;;;;;;;;;;;;;;;;;;;iBKJgB,aAAA,CAAc,KAAA,EAAO,UAAA,EAAY,OAAA,EAAS,YAAA,GAAe,SAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -48,6 +48,7 @@ const MODELS = [
|
|
|
48
48
|
...HUGGINGFACE_MODELS,
|
|
49
49
|
...INCEPTION_MODELS
|
|
50
50
|
];
|
|
51
|
+
/** @private */
|
|
51
52
|
const MODEL_INDEX = new Map(MODELS.map((m) => [m.id, m]));
|
|
52
53
|
/**
|
|
53
54
|
* Look up a model definition by its identifier.
|
|
@@ -89,6 +90,11 @@ function models(filter) {
|
|
|
89
90
|
}
|
|
90
91
|
//#endregion
|
|
91
92
|
//#region src/provider/registry.ts
|
|
93
|
+
/** @private */
|
|
94
|
+
function errorMessage(error) {
|
|
95
|
+
if (error instanceof Error) return error.message;
|
|
96
|
+
return String(error);
|
|
97
|
+
}
|
|
92
98
|
/**
|
|
93
99
|
* Create a provider registry that resolves `provider/model` string IDs
|
|
94
100
|
* to AI SDK {@link LanguageModel} instances.
|
|
@@ -121,7 +127,12 @@ function createProviderRegistry(config) {
|
|
|
121
127
|
const inner = createProviderRegistry$1(config.providers, { separator: "/" });
|
|
122
128
|
return (modelId) => {
|
|
123
129
|
if (!modelId.trim()) throw new Error("Cannot resolve model: model ID is empty");
|
|
124
|
-
|
|
130
|
+
if (!modelId.includes("/")) throw new Error(`Invalid model ID "${modelId}": expected "provider/model" format (e.g. "openai/gpt-4.1")`);
|
|
131
|
+
try {
|
|
132
|
+
return inner.languageModel(modelId);
|
|
133
|
+
} catch (error) {
|
|
134
|
+
throw new Error(`Failed to resolve model "${modelId}": ${errorMessage(error)}`, { cause: error });
|
|
135
|
+
}
|
|
125
136
|
};
|
|
126
137
|
}
|
|
127
138
|
//#endregion
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["MODELS","GENERATED_MODELS","baseCreateProviderRegistry"],"sources":["../src/catalog/providers/index.ts","../src/catalog/index.ts","../src/provider/registry.ts","../src/cost/calculate.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\n// oxlint-disable eslint-plugin-import/max-dependencies\nimport type { ModelDefinition } from \"../types.js\";\nimport { ALIBABA_MODELS } from \"./alibaba.js\";\nimport { AMAZON_BEDROCK_MODELS } from \"./amazon-bedrock.js\";\nimport { ANTHROPIC_MODELS } from \"./anthropic.js\";\nimport { CEREBRAS_MODELS } from \"./cerebras.js\";\nimport { COHERE_MODELS } from \"./cohere.js\";\nimport { DEEPINFRA_MODELS } from \"./deepinfra.js\";\nimport { DEEPSEEK_MODELS } from \"./deepseek.js\";\nimport { FIREWORKS_AI_MODELS } from \"./fireworks-ai.js\";\nimport { GOOGLE_VERTEX_MODELS } from \"./google-vertex.js\";\nimport { GOOGLE_MODELS } from \"./google.js\";\nimport { GROQ_MODELS } from \"./groq.js\";\nimport { HUGGINGFACE_MODELS } from \"./huggingface.js\";\nimport { INCEPTION_MODELS } from \"./inception.js\";\nimport { LLAMA_MODELS } from \"./llama.js\";\nimport { MISTRAL_MODELS } from \"./mistral.js\";\nimport { NVIDIA_MODELS } from \"./nvidia.js\";\nimport { OPENAI_MODELS } from \"./openai.js\";\nimport { OPENROUTER_MODELS } from \"./openrouter.js\";\nimport { PERPLEXITY_MODELS } from \"./perplexity.js\";\nimport { TOGETHERAI_MODELS } from \"./togetherai.js\";\nimport { XAI_MODELS } from \"./xai.js\";\n\nexport const MODELS = [\n ...OPENAI_MODELS,\n ...ANTHROPIC_MODELS,\n ...GOOGLE_MODELS,\n ...GOOGLE_VERTEX_MODELS,\n ...MISTRAL_MODELS,\n ...AMAZON_BEDROCK_MODELS,\n ...GROQ_MODELS,\n ...DEEPSEEK_MODELS,\n ...XAI_MODELS,\n ...COHERE_MODELS,\n ...FIREWORKS_AI_MODELS,\n ...TOGETHERAI_MODELS,\n ...DEEPINFRA_MODELS,\n ...CEREBRAS_MODELS,\n ...PERPLEXITY_MODELS,\n ...OPENROUTER_MODELS,\n ...LLAMA_MODELS,\n ...ALIBABA_MODELS,\n ...NVIDIA_MODELS,\n ...HUGGINGFACE_MODELS,\n ...INCEPTION_MODELS,\n] as const satisfies readonly ModelDefinition[];\n","import type { LiteralUnion } from \"type-fest\";\n\nimport type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing } from \"./types.js\";\nimport { MODELS as GENERATED_MODELS } from \"@/catalog/providers/index.js\";\n\nexport type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing };\n\n/**\n * Known model identifiers from the generated catalog.\n */\nexport type KnownModelId = (typeof GENERATED_MODELS)[number][\"id\"];\n\n/**\n * A model identifier that suggests known models but accepts any string.\n *\n * Provides autocomplete for cataloged models while allowing arbitrary\n * model IDs for new or custom models not yet in the catalog.\n */\nexport type ModelId = LiteralUnion<KnownModelId, string>;\n\n/**\n * All supported models with pricing and capability data.\n */\nexport const MODELS = GENERATED_MODELS satisfies readonly ModelDefinition[];\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a model definition by its identifier.\n *\n * Returns `null` when the ID is not in the catalog — callers should\n * handle missing models gracefully (e.g. custom or newly released models).\n *\n * @param id - The model identifier to look up.\n * @returns The matching model definition, or `null`.\n *\n * @example\n * ```typescript\n * const m = model('gpt-4.1')\n * if (m) {\n * console.log(m.pricing.input)\n * console.log(m.capabilities.reasoning)\n * }\n * ```\n */\nexport function model(id: ModelId): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n\n/**\n * Return supported model definitions, optionally filtered.\n *\n * @param filter - Optional predicate to filter models.\n * @returns A readonly array of matching model definitions.\n *\n * @example\n * ```typescript\n * const all = models()\n * const reasoning = models((m) => m.capabilities.reasoning)\n * const vision = models((m) => m.modalities.input.includes('image'))\n * ```\n */\nexport function models(filter?: (m: ModelDefinition) => boolean): readonly ModelDefinition[] {\n if (filter) {\n return MODELS.filter(filter);\n }\n return MODELS;\n}\n","import { createProviderRegistry as baseCreateProviderRegistry } from \"ai\";\n\nimport type { ModelId } from \"@/catalog/index.js\";\nimport type { LanguageModel } from \"@/provider/types.js\";\n\n/**\n * Extract the provider type accepted by the AI SDK's `createProviderRegistry`.\n *\n * @private\n */\ntype AIProviders = Parameters<typeof baseCreateProviderRegistry>[0];\n\n/**\n * Configuration for {@link createProviderRegistry}.\n */\nexport interface ProviderRegistryConfig {\n /**\n * AI SDK provider instances keyed by prefix.\n *\n * When a model ID like `\"openai/gpt-4.1\"` is resolved, the prefix\n * `\"openai\"` is extracted and looked up in this map.\n *\n * @example\n * ```typescript\n * import { createOpenAI } from '@ai-sdk/openai'\n * import { anthropic } from '@ai-sdk/anthropic'\n *\n * const registry = createProviderRegistry({\n * providers: {\n * openai: createOpenAI({ apiKey: '...' }),\n * anthropic,\n * },\n * })\n * ```\n */\n readonly providers: AIProviders;\n}\n\n/**\n * A function that resolves a model ID to a {@link LanguageModel} instance.\n *\n * @param modelId - Catalog model identifier in `provider/model` format.\n * @returns The resolved AI SDK {@link LanguageModel}.\n *\n * @example\n * ```typescript\n * const model = registry(\"openai/gpt-4.1\");\n * ```\n */\nexport type ProviderRegistry = (modelId: ModelId) => LanguageModel;\n\n/**\n * Create a provider registry that resolves `provider/model` string IDs\n * to AI SDK {@link LanguageModel} instances.\n *\n * Thin wrapper around the AI SDK's `createProviderRegistry` that uses\n * `/` as the separator instead of `:`, matching the model ID format used\n * throughout the funkai catalog (e.g. `\"openai/gpt-4.1\"`).\n *\n * @param config - Provider mappings.\n * @returns A resolver function that maps model IDs to {@link LanguageModel} instances.\n *\n * @example\n * ```typescript\n * import { createOpenAI } from '@ai-sdk/openai'\n * import { anthropic } from '@ai-sdk/anthropic'\n * import { createProviderRegistry } from '@funkai/models'\n *\n * const registry = createProviderRegistry({\n * providers: {\n * openai: createOpenAI({ apiKey: '...' }),\n * anthropic,\n * },\n * })\n *\n * const m1 = registry('openai/gpt-4.1')\n * const m2 = registry('anthropic/claude-sonnet-4')\n * ```\n */\nexport function createProviderRegistry(config: ProviderRegistryConfig): ProviderRegistry {\n const inner = baseCreateProviderRegistry(config.providers, {\n separator: \"/\",\n });\n\n return (modelId: ModelId): LanguageModel => {\n if (!modelId.trim()) {\n throw new Error(\"Cannot resolve model: model ID is empty\");\n }\n // Cast needed: AI SDK overloads expect `provider/model` template literal,\n // But our ModelId is a branded string union. The runtime validates the format.\n return inner.languageModel(modelId as `${string}/${string}`) as LanguageModel;\n };\n}\n","import type { UsageCost } from \"./types.js\";\nimport type { ModelPricing } from \"@/catalog/types.js\";\nimport type { TokenUsage } from \"@/provider/types.js\";\n\n/**\n * Calculate the dollar cost from token usage and model pricing.\n *\n * Multiplies each token count by the corresponding per-token pricing rate.\n * Optional pricing fields (cache) default to `0` when absent.\n *\n * @param usage - Token counts from a model invocation.\n * @param pricing - Per-token pricing rates for the model.\n * @returns A {@link UsageCost} with per-field and total costs in USD.\n *\n * @example\n * ```typescript\n * import { calculateCost, model } from '@funkai/models'\n *\n * const usage: TokenUsage = {\n * inputTokens: 1000,\n * outputTokens: 500,\n * totalTokens: 1500,\n * cacheReadTokens: 200,\n * cacheWriteTokens: 0,\n * reasoningTokens: 0,\n * }\n * const m = model('gpt-4.1')\n * if (m) {\n * const cost = calculateCost(usage, m.pricing)\n * console.log(cost.total) // 0.006\n * }\n * ```\n */\nexport function calculateCost(usage: TokenUsage, pricing: ModelPricing): UsageCost {\n const input = usage.inputTokens * pricing.input;\n const output = usage.outputTokens * pricing.output;\n const cacheRead = usage.cacheReadTokens * (pricing.cacheRead ?? 0);\n const cacheWrite = usage.cacheWriteTokens * (pricing.cacheWrite ?? 0);\n const reasoning = usage.reasoningTokens * (pricing.reasoning ?? 0);\n const total = input + output + cacheRead + cacheWrite + reasoning;\n\n return { input, output, cacheRead, cacheWrite, reasoning, total };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBA,MAAa,SDcS;CACpB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AClCD,MAAM,cAAc,IAAI,IAA6B,OAAO,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;AAoBlF,SAAgB,MAAM,IAAqC;AACzD,QAAO,YAAY,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;AAgBhC,SAAgB,OAAO,QAAsE;AAC3F,KAAI,OACF,QAAO,OAAO,OAAO,OAAO;AAE9B,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACaT,SAAgB,uBAAuB,QAAkD;CACvF,MAAM,QAAQE,yBAA2B,OAAO,WAAW,EACzD,WAAW,KACZ,CAAC;AAEF,SAAQ,YAAoC;AAC1C,MAAI,CAAC,QAAQ,MAAM,CACjB,OAAM,IAAI,MAAM,0CAA0C;AAI5D,SAAO,MAAM,cAAc,QAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzDhE,SAAgB,cAAc,OAAmB,SAAkC;CACjF,MAAM,QAAQ,MAAM,cAAc,QAAQ;CAC1C,MAAM,SAAS,MAAM,eAAe,QAAQ;CAC5C,MAAM,YAAY,MAAM,mBAAmB,QAAQ,aAAa;CAChE,MAAM,aAAa,MAAM,oBAAoB,QAAQ,cAAc;CACnE,MAAM,YAAY,MAAM,mBAAmB,QAAQ,aAAa;AAGhE,QAAO;EAAE;EAAO;EAAQ;EAAW;EAAY;EAAW,OAF5C,QAAQ,SAAS,YAAY,aAAa;EAES"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["MODELS","GENERATED_MODELS","baseCreateProviderRegistry"],"sources":["../src/catalog/providers/index.ts","../src/catalog/index.ts","../src/provider/registry.ts","../src/cost/calculate.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\n// oxlint-disable eslint-plugin-import/max-dependencies\nimport type { ModelDefinition } from \"../types.js\";\nimport { ALIBABA_MODELS } from \"./alibaba.js\";\nimport { AMAZON_BEDROCK_MODELS } from \"./amazon-bedrock.js\";\nimport { ANTHROPIC_MODELS } from \"./anthropic.js\";\nimport { CEREBRAS_MODELS } from \"./cerebras.js\";\nimport { COHERE_MODELS } from \"./cohere.js\";\nimport { DEEPINFRA_MODELS } from \"./deepinfra.js\";\nimport { DEEPSEEK_MODELS } from \"./deepseek.js\";\nimport { FIREWORKS_AI_MODELS } from \"./fireworks-ai.js\";\nimport { GOOGLE_VERTEX_MODELS } from \"./google-vertex.js\";\nimport { GOOGLE_MODELS } from \"./google.js\";\nimport { GROQ_MODELS } from \"./groq.js\";\nimport { HUGGINGFACE_MODELS } from \"./huggingface.js\";\nimport { INCEPTION_MODELS } from \"./inception.js\";\nimport { LLAMA_MODELS } from \"./llama.js\";\nimport { MISTRAL_MODELS } from \"./mistral.js\";\nimport { NVIDIA_MODELS } from \"./nvidia.js\";\nimport { OPENAI_MODELS } from \"./openai.js\";\nimport { OPENROUTER_MODELS } from \"./openrouter.js\";\nimport { PERPLEXITY_MODELS } from \"./perplexity.js\";\nimport { TOGETHERAI_MODELS } from \"./togetherai.js\";\nimport { XAI_MODELS } from \"./xai.js\";\n\nexport const MODELS = [\n ...OPENAI_MODELS,\n ...ANTHROPIC_MODELS,\n ...GOOGLE_MODELS,\n ...GOOGLE_VERTEX_MODELS,\n ...MISTRAL_MODELS,\n ...AMAZON_BEDROCK_MODELS,\n ...GROQ_MODELS,\n ...DEEPSEEK_MODELS,\n ...XAI_MODELS,\n ...COHERE_MODELS,\n ...FIREWORKS_AI_MODELS,\n ...TOGETHERAI_MODELS,\n ...DEEPINFRA_MODELS,\n ...CEREBRAS_MODELS,\n ...PERPLEXITY_MODELS,\n ...OPENROUTER_MODELS,\n ...LLAMA_MODELS,\n ...ALIBABA_MODELS,\n ...NVIDIA_MODELS,\n ...HUGGINGFACE_MODELS,\n ...INCEPTION_MODELS,\n] as const satisfies readonly ModelDefinition[];\n","import type { LiteralUnion } from \"type-fest\";\n\nimport type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing } from \"./types.js\";\nimport { MODELS as GENERATED_MODELS } from \"@/catalog/providers/index.js\";\n\nexport type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing };\n\n/**\n * Known model identifiers from the generated catalog.\n */\nexport type KnownModelId = (typeof GENERATED_MODELS)[number][\"id\"];\n\n/**\n * A model identifier that suggests known models but accepts any string.\n *\n * Provides autocomplete for cataloged models while allowing arbitrary\n * model IDs for new or custom models not yet in the catalog.\n */\nexport type ModelId = LiteralUnion<KnownModelId, string>;\n\n/**\n * All supported models with pricing and capability data.\n */\nexport const MODELS = GENERATED_MODELS satisfies readonly ModelDefinition[];\n\n/** @private */\nconst MODEL_INDEX = new Map<string, ModelDefinition>(MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a model definition by its identifier.\n *\n * Returns `null` when the ID is not in the catalog — callers should\n * handle missing models gracefully (e.g. custom or newly released models).\n *\n * @param id - The model identifier to look up.\n * @returns The matching model definition, or `null`.\n *\n * @example\n * ```typescript\n * const m = model('gpt-4.1')\n * if (m) {\n * console.log(m.pricing.input)\n * console.log(m.capabilities.reasoning)\n * }\n * ```\n */\nexport function model(id: ModelId): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n\n/**\n * Return supported model definitions, optionally filtered.\n *\n * @param filter - Optional predicate to filter models.\n * @returns A readonly array of matching model definitions.\n *\n * @example\n * ```typescript\n * const all = models()\n * const reasoning = models((m) => m.capabilities.reasoning)\n * const vision = models((m) => m.modalities.input.includes('image'))\n * ```\n */\nexport function models(filter?: (m: ModelDefinition) => boolean): readonly ModelDefinition[] {\n if (filter) {\n return MODELS.filter(filter);\n }\n return MODELS;\n}\n","import { createProviderRegistry as baseCreateProviderRegistry } from \"ai\";\n\nimport type { ModelId } from \"@/catalog/index.js\";\nimport type { LanguageModel } from \"@/provider/types.js\";\n\n/** @private */\nfunction errorMessage(error: unknown): string {\n if (error instanceof Error) {\n return error.message;\n }\n return String(error);\n}\n\n/**\n * Extract the provider type accepted by the AI SDK's `createProviderRegistry`.\n *\n * @private\n */\ntype AIProviders = Parameters<typeof baseCreateProviderRegistry>[0];\n\n/**\n * Configuration for {@link createProviderRegistry}.\n */\nexport interface ProviderRegistryConfig {\n /**\n * AI SDK provider instances keyed by prefix.\n *\n * When a model ID like `\"openai/gpt-4.1\"` is resolved, the prefix\n * `\"openai\"` is extracted and looked up in this map.\n *\n * @example\n * ```typescript\n * import { createOpenAI } from '@ai-sdk/openai'\n * import { anthropic } from '@ai-sdk/anthropic'\n *\n * const registry = createProviderRegistry({\n * providers: {\n * openai: createOpenAI({ apiKey: '...' }),\n * anthropic,\n * },\n * })\n * ```\n */\n readonly providers: AIProviders;\n}\n\n/**\n * A function that resolves a model ID to a {@link LanguageModel} instance.\n *\n * @param modelId - Catalog model identifier in `provider/model` format.\n * @returns The resolved AI SDK {@link LanguageModel}.\n *\n * @example\n * ```typescript\n * const model = registry(\"openai/gpt-4.1\");\n * ```\n */\nexport type ProviderRegistry = (modelId: ModelId) => LanguageModel;\n\n/**\n * Create a provider registry that resolves `provider/model` string IDs\n * to AI SDK {@link LanguageModel} instances.\n *\n * Thin wrapper around the AI SDK's `createProviderRegistry` that uses\n * `/` as the separator instead of `:`, matching the model ID format used\n * throughout the funkai catalog (e.g. `\"openai/gpt-4.1\"`).\n *\n * @param config - Provider mappings.\n * @returns A resolver function that maps model IDs to {@link LanguageModel} instances.\n *\n * @example\n * ```typescript\n * import { createOpenAI } from '@ai-sdk/openai'\n * import { anthropic } from '@ai-sdk/anthropic'\n * import { createProviderRegistry } from '@funkai/models'\n *\n * const registry = createProviderRegistry({\n * providers: {\n * openai: createOpenAI({ apiKey: '...' }),\n * anthropic,\n * },\n * })\n *\n * const m1 = registry('openai/gpt-4.1')\n * const m2 = registry('anthropic/claude-sonnet-4')\n * ```\n */\nexport function createProviderRegistry(config: ProviderRegistryConfig): ProviderRegistry {\n const inner = baseCreateProviderRegistry(config.providers, {\n separator: \"/\",\n });\n\n return (modelId: ModelId): LanguageModel => {\n if (!modelId.trim()) {\n throw new Error(\"Cannot resolve model: model ID is empty\");\n }\n if (!modelId.includes(\"/\")) {\n throw new Error(\n `Invalid model ID \"${modelId}\": expected \"provider/model\" format (e.g. \"openai/gpt-4.1\")`,\n );\n }\n // Cast needed: AI SDK overloads expect `provider/model` template literal,\n // But our ModelId is a branded string union. The runtime validates the format.\n try {\n return inner.languageModel(modelId as `${string}/${string}`) as LanguageModel;\n } catch (error) {\n throw new Error(`Failed to resolve model \"${modelId}\": ${errorMessage(error)}`, {\n cause: error,\n });\n }\n };\n}\n","import type { UsageCost } from \"./types.js\";\nimport type { ModelPricing } from \"@/catalog/types.js\";\nimport type { TokenUsage } from \"@/provider/types.js\";\n\n/**\n * Calculate the dollar cost from token usage and model pricing.\n *\n * Multiplies each token count by the corresponding per-token pricing rate.\n * Optional pricing fields (cache) default to `0` when absent.\n *\n * @param usage - Token counts from a model invocation.\n * @param pricing - Per-token pricing rates for the model.\n * @returns A {@link UsageCost} with per-field and total costs in USD.\n *\n * @example\n * ```typescript\n * import { calculateCost, model } from '@funkai/models'\n *\n * const usage: TokenUsage = {\n * inputTokens: 1000,\n * outputTokens: 500,\n * totalTokens: 1500,\n * cacheReadTokens: 200,\n * cacheWriteTokens: 0,\n * reasoningTokens: 0,\n * }\n * const m = model('gpt-4.1')\n * if (m) {\n * const cost = calculateCost(usage, m.pricing)\n * console.log(cost.total) // 0.006\n * }\n * ```\n */\nexport function calculateCost(usage: TokenUsage, pricing: ModelPricing): UsageCost {\n const input = usage.inputTokens * pricing.input;\n const output = usage.outputTokens * pricing.output;\n const cacheRead = usage.cacheReadTokens * (pricing.cacheRead ?? 0);\n const cacheWrite = usage.cacheWriteTokens * (pricing.cacheWrite ?? 0);\n const reasoning = usage.reasoningTokens * (pricing.reasoning ?? 0);\n const total = input + output + cacheRead + cacheWrite + reasoning;\n\n return { input, output, cacheRead, cacheWrite, reasoning, total };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBA,MAAa,SDcS;CACpB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;;ACjCD,MAAM,cAAc,IAAI,IAA6B,OAAO,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;AAoBlF,SAAgB,MAAM,IAAqC;AACzD,QAAO,YAAY,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;AAgBhC,SAAgB,OAAO,QAAsE;AAC3F,KAAI,OACF,QAAO,OAAO,OAAO,OAAO;AAE9B,QAAO;;;;;AC7DT,SAAS,aAAa,OAAwB;AAC5C,KAAI,iBAAiB,MACnB,QAAO,MAAM;AAEf,QAAO,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EtB,SAAgB,uBAAuB,QAAkD;CACvF,MAAM,QAAQE,yBAA2B,OAAO,WAAW,EACzD,WAAW,KACZ,CAAC;AAEF,SAAQ,YAAoC;AAC1C,MAAI,CAAC,QAAQ,MAAM,CACjB,OAAM,IAAI,MAAM,0CAA0C;AAE5D,MAAI,CAAC,QAAQ,SAAS,IAAI,CACxB,OAAM,IAAI,MACR,qBAAqB,QAAQ,6DAC9B;AAIH,MAAI;AACF,UAAO,MAAM,cAAc,QAAiC;WACrD,OAAO;AACd,SAAM,IAAI,MAAM,4BAA4B,QAAQ,KAAK,aAAa,MAAM,IAAI,EAC9E,OAAO,OACR,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3ER,SAAgB,cAAc,OAAmB,SAAkC;CACjF,MAAM,QAAQ,MAAM,cAAc,QAAQ;CAC1C,MAAM,SAAS,MAAM,eAAe,QAAQ;CAC5C,MAAM,YAAY,MAAM,mBAAmB,QAAQ,aAAa;CAChE,MAAM,aAAa,MAAM,oBAAoB,QAAQ,cAAc;CACnE,MAAM,YAAY,MAAM,mBAAmB,QAAQ,aAAa;AAGhE,QAAO;EAAE;EAAO;EAAQ;EAAW;EAAY;EAAW,OAF5C,QAAQ,SAAS,YAAY,aAAa;EAES"}
|
package/package.json
CHANGED
|
@@ -53,6 +53,8 @@ interface ApiProvider {
|
|
|
53
53
|
/**
|
|
54
54
|
* Convert a provider key to a TypeScript constant name.
|
|
55
55
|
* e.g. "openai" → "OPENAI_MODELS", "meta-llama" → "META_LLAMA_MODELS"
|
|
56
|
+
*
|
|
57
|
+
* @private
|
|
56
58
|
*/
|
|
57
59
|
function toConstName(provider: string): string {
|
|
58
60
|
return `${provider.toUpperCase().replaceAll(/[^A-Z0-9]/g, "_")}_MODELS`;
|
|
@@ -61,6 +63,8 @@ function toConstName(provider: string): string {
|
|
|
61
63
|
/**
|
|
62
64
|
* Lowercase the first character of a string, preserving the rest as-is.
|
|
63
65
|
* e.g. "OpenAI" → "openAI", "GoogleVertex" → "googleVertex", "XAI" → "xAI"
|
|
66
|
+
*
|
|
67
|
+
* @private
|
|
64
68
|
*/
|
|
65
69
|
function lowerFirst(s: string): string {
|
|
66
70
|
if (s.length === 0) {
|
|
@@ -75,6 +79,8 @@ function lowerFirst(s: string): string {
|
|
|
75
79
|
|
|
76
80
|
/**
|
|
77
81
|
* Return the correct indefinite article ("a" or "an") for a word.
|
|
82
|
+
*
|
|
83
|
+
* @private
|
|
78
84
|
*/
|
|
79
85
|
function article(word: string): string {
|
|
80
86
|
if (/^[aeiou]/i.test(word)) {
|
|
@@ -86,6 +92,8 @@ function article(word: string): string {
|
|
|
86
92
|
/**
|
|
87
93
|
* Convert per-million-token rate to per-token rate, rounding to
|
|
88
94
|
* eliminate floating-point noise (e.g. `8.000000000000001e-7`).
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
89
97
|
*/
|
|
90
98
|
function toPerToken(perMillion: number): number {
|
|
91
99
|
return parseFloat((perMillion / 1_000_000).toPrecision(6));
|
|
@@ -94,6 +102,8 @@ function toPerToken(perMillion: number): number {
|
|
|
94
102
|
/**
|
|
95
103
|
* Format a number for codegen output, using scientific notation for
|
|
96
104
|
* very small values.
|
|
105
|
+
*
|
|
106
|
+
* @private
|
|
97
107
|
*/
|
|
98
108
|
function fmtNum(n: number): string {
|
|
99
109
|
if (n === 0) {
|
|
@@ -105,22 +115,29 @@ function fmtNum(n: number): string {
|
|
|
105
115
|
return String(n);
|
|
106
116
|
}
|
|
107
117
|
|
|
118
|
+
/** @private */
|
|
119
|
+
function extractExampleId(model: ApiModel | undefined): string {
|
|
120
|
+
if (model !== undefined && model !== null) {
|
|
121
|
+
return model.id;
|
|
122
|
+
}
|
|
123
|
+
return "example-id";
|
|
124
|
+
}
|
|
125
|
+
|
|
108
126
|
/**
|
|
109
127
|
* Build the pricing object literal string for a model.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
110
130
|
*/
|
|
131
|
+
function extractCostField(cost: ApiModel["cost"], field: "input" | "output"): number {
|
|
132
|
+
if (cost !== undefined && cost !== null) {
|
|
133
|
+
return cost[field] ?? 0;
|
|
134
|
+
}
|
|
135
|
+
return 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
111
138
|
function buildPricing(cost: ApiModel["cost"]): string {
|
|
112
|
-
const costInput
|
|
113
|
-
|
|
114
|
-
return cost.input;
|
|
115
|
-
}
|
|
116
|
-
return 0;
|
|
117
|
-
})();
|
|
118
|
-
const costOutput: number = (() => {
|
|
119
|
-
if (cost !== undefined && cost !== null && cost.output !== undefined && cost.output !== null) {
|
|
120
|
-
return cost.output;
|
|
121
|
-
}
|
|
122
|
-
return 0;
|
|
123
|
-
})();
|
|
139
|
+
const costInput = extractCostField(cost, "input");
|
|
140
|
+
const costOutput = extractCostField(cost, "output");
|
|
124
141
|
const input = toPerToken(costInput);
|
|
125
142
|
const output = toPerToken(costOutput);
|
|
126
143
|
const parts: string[] = [`input: ${fmtNum(input)}`, `output: ${fmtNum(output)}`];
|
|
@@ -142,30 +159,22 @@ function buildPricing(cost: ApiModel["cost"]): string {
|
|
|
142
159
|
|
|
143
160
|
/**
|
|
144
161
|
* Build the modalities object literal string.
|
|
162
|
+
*
|
|
163
|
+
* @private
|
|
145
164
|
*/
|
|
165
|
+
function extractModalityField(
|
|
166
|
+
modalities: ApiModel["modalities"],
|
|
167
|
+
field: "input" | "output",
|
|
168
|
+
): string[] {
|
|
169
|
+
if (modalities !== undefined && modalities !== null) {
|
|
170
|
+
return modalities[field] ?? ["text"];
|
|
171
|
+
}
|
|
172
|
+
return ["text"];
|
|
173
|
+
}
|
|
174
|
+
|
|
146
175
|
function buildModalities(modalities: ApiModel["modalities"]): string {
|
|
147
|
-
const modalInput
|
|
148
|
-
|
|
149
|
-
modalities !== undefined &&
|
|
150
|
-
modalities !== null &&
|
|
151
|
-
modalities.input !== undefined &&
|
|
152
|
-
modalities.input !== null
|
|
153
|
-
) {
|
|
154
|
-
return modalities.input;
|
|
155
|
-
}
|
|
156
|
-
return ["text"];
|
|
157
|
-
})();
|
|
158
|
-
const modalOutput: string[] = (() => {
|
|
159
|
-
if (
|
|
160
|
-
modalities !== undefined &&
|
|
161
|
-
modalities !== null &&
|
|
162
|
-
modalities.output !== undefined &&
|
|
163
|
-
modalities.output !== null
|
|
164
|
-
) {
|
|
165
|
-
return modalities.output;
|
|
166
|
-
}
|
|
167
|
-
return ["text"];
|
|
168
|
-
})();
|
|
176
|
+
const modalInput = extractModalityField(modalities, "input");
|
|
177
|
+
const modalOutput = extractModalityField(modalities, "output");
|
|
169
178
|
const input = JSON.stringify(modalInput);
|
|
170
179
|
const output = JSON.stringify(modalOutput);
|
|
171
180
|
return `{ input: ${input}, output: ${output} }`;
|
|
@@ -173,6 +182,8 @@ function buildModalities(modalities: ApiModel["modalities"]): string {
|
|
|
173
182
|
|
|
174
183
|
/**
|
|
175
184
|
* Build the capabilities object literal string.
|
|
185
|
+
*
|
|
186
|
+
* @private
|
|
176
187
|
*/
|
|
177
188
|
function buildCapabilities(m: ApiModel): string {
|
|
178
189
|
return [
|
|
@@ -185,28 +196,22 @@ function buildCapabilities(m: ApiModel): string {
|
|
|
185
196
|
|
|
186
197
|
/**
|
|
187
198
|
* Extract context window and max output from a model's limit field.
|
|
199
|
+
*
|
|
200
|
+
* @private
|
|
188
201
|
*/
|
|
189
202
|
function getModelLimits(limit: ApiModel["limit"]): { contextWindow: number; maxOutput: number } {
|
|
190
203
|
if (limit === undefined || limit === null) {
|
|
191
204
|
return { contextWindow: 0, maxOutput: 0 };
|
|
192
205
|
}
|
|
193
|
-
const contextWindow
|
|
194
|
-
|
|
195
|
-
return limit.context;
|
|
196
|
-
}
|
|
197
|
-
return 0;
|
|
198
|
-
})();
|
|
199
|
-
const maxOutput: number = (() => {
|
|
200
|
-
if (limit.output !== undefined && limit.output !== null) {
|
|
201
|
-
return limit.output;
|
|
202
|
-
}
|
|
203
|
-
return 0;
|
|
204
|
-
})();
|
|
206
|
+
const contextWindow = limit.context ?? 0;
|
|
207
|
+
const maxOutput = limit.output ?? 0;
|
|
205
208
|
return { contextWindow, maxOutput };
|
|
206
209
|
}
|
|
207
210
|
|
|
208
211
|
/**
|
|
209
212
|
* Escape a string for use in a TypeScript single-quoted string literal.
|
|
213
|
+
*
|
|
214
|
+
* @private
|
|
210
215
|
*/
|
|
211
216
|
function escapeStr(s: string): string {
|
|
212
217
|
return s
|
|
@@ -216,6 +221,11 @@ function escapeStr(s: string): string {
|
|
|
216
221
|
.replaceAll("\r", String.raw`\r`);
|
|
217
222
|
}
|
|
218
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Check whether the staleness cache file indicates a recent fetch.
|
|
226
|
+
*
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
219
229
|
function isFresh(reqPath: string): boolean {
|
|
220
230
|
if (!existsSync(reqPath)) {
|
|
221
231
|
return false;
|
|
@@ -286,37 +296,33 @@ export default lauf({
|
|
|
286
296
|
rmSync(ENTRY_DIR, { recursive: true, force: true });
|
|
287
297
|
mkdirSync(ENTRY_DIR, { recursive: true });
|
|
288
298
|
|
|
289
|
-
const providerFiles
|
|
290
|
-
|
|
291
|
-
for (const providerKey of providerKeys) {
|
|
299
|
+
const providerFiles = providerKeys.flatMap((providerKey) => {
|
|
292
300
|
const apiProviderEntry = apiData[providerKey];
|
|
293
301
|
const providerEntry = providers[providerKey];
|
|
294
|
-
if (apiProviderEntry
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
// Write catalog provider file
|
|
319
|
-
const catalogContent = `${BANNER}
|
|
302
|
+
if (apiProviderEntry === undefined || providerEntry === undefined) {
|
|
303
|
+
return [];
|
|
304
|
+
}
|
|
305
|
+
if (apiProviderEntry.models === undefined || apiProviderEntry.models === null) {
|
|
306
|
+
throw new Error(
|
|
307
|
+
`models.dev API returned no models for configured provider: ${providerKey}`,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
const apiModels = apiProviderEntry.models;
|
|
311
|
+
const constName = toConstName(providerKey);
|
|
312
|
+
const lines = Object.values(apiModels).map((m) => {
|
|
313
|
+
const id = escapeStr(m.id);
|
|
314
|
+
const name = escapeStr(m.name ?? m.id);
|
|
315
|
+
const family = escapeStr(m.family ?? "");
|
|
316
|
+
const pricing = buildPricing(m.cost);
|
|
317
|
+
const { contextWindow, maxOutput } = getModelLimits(m.limit);
|
|
318
|
+
const modalities = buildModalities(m.modalities);
|
|
319
|
+
const capabilities = buildCapabilities(m);
|
|
320
|
+
|
|
321
|
+
return ` { id: '${id}', name: '${name}', provider: '${providerKey}', family: '${family}', pricing: ${pricing}, contextWindow: ${contextWindow}, maxOutput: ${maxOutput}, modalities: ${modalities}, capabilities: { ${capabilities} } },`;
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
// Write catalog provider file
|
|
325
|
+
const catalogContent = `${BANNER}
|
|
320
326
|
|
|
321
327
|
import type { ModelDefinition } from '../types.js'
|
|
322
328
|
|
|
@@ -325,24 +331,17 @@ ${lines.join("\n")}
|
|
|
325
331
|
] as const satisfies readonly ModelDefinition[]
|
|
326
332
|
`;
|
|
327
333
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
return "example-id";
|
|
341
|
-
})(),
|
|
342
|
-
);
|
|
343
|
-
const providerName = escapeStr(providerEntry.name);
|
|
344
|
-
const art = article(providerEntry.name);
|
|
345
|
-
const entryContent = `${BANNER}
|
|
334
|
+
const catalogPath = join(CATALOG_DIR, `${providerKey}.ts`);
|
|
335
|
+
writeFileSync(catalogPath, catalogContent, "utf8");
|
|
336
|
+
|
|
337
|
+
// Write per-provider entry point
|
|
338
|
+
const { prefix } = providerEntry;
|
|
339
|
+
const camel = lowerFirst(prefix);
|
|
340
|
+
const [firstModel] = Object.values(apiModels);
|
|
341
|
+
const exampleId = escapeStr(extractExampleId(firstModel));
|
|
342
|
+
const providerName = escapeStr(providerEntry.name);
|
|
343
|
+
const art = article(providerEntry.name);
|
|
344
|
+
const entryContent = `${BANNER}
|
|
346
345
|
|
|
347
346
|
import type { LiteralUnion } from 'type-fest'
|
|
348
347
|
import type { ModelDefinition } from '../catalog/types.js'
|
|
@@ -374,6 +373,7 @@ export type ${prefix}ModelId = (typeof ${constName})[number]['id']
|
|
|
374
373
|
*/
|
|
375
374
|
export const ${camel}Models = ${constName}
|
|
376
375
|
|
|
376
|
+
/** @private */
|
|
377
377
|
const MODEL_INDEX = new Map<string, ModelDefinition>(${constName}.map((m) => [m.id, m]))
|
|
378
378
|
|
|
379
379
|
/**
|
|
@@ -397,13 +397,12 @@ export function ${camel}Model(id: LiteralUnion<${prefix}ModelId, string>): Model
|
|
|
397
397
|
}
|
|
398
398
|
`;
|
|
399
399
|
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
const entryPath = join(ENTRY_DIR, `${providerKey}.ts`);
|
|
401
|
+
writeFileSync(entryPath, entryContent, "utf8");
|
|
402
402
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
403
|
+
ctx.logger.success(`${providerKey} (${lines.length} models)`);
|
|
404
|
+
return [{ provider: providerKey, constName, count: lines.length }];
|
|
405
|
+
});
|
|
407
406
|
|
|
408
407
|
// Catalog barrel
|
|
409
408
|
const imports = providerFiles
|
|
@@ -414,6 +413,7 @@ export function ${camel}Model(id: LiteralUnion<${prefix}ModelId, string>): Model
|
|
|
414
413
|
|
|
415
414
|
const catalogBarrel = `${BANNER}
|
|
416
415
|
|
|
416
|
+
// oxlint-disable eslint-plugin-import/max-dependencies
|
|
417
417
|
import type { ModelDefinition } from '../types.js'
|
|
418
418
|
${imports}
|
|
419
419
|
|
|
@@ -439,15 +439,17 @@ ${spreads}
|
|
|
439
439
|
types: "./dist/index.d.mts",
|
|
440
440
|
import: "./dist/index.mjs",
|
|
441
441
|
},
|
|
442
|
+
...Object.fromEntries(
|
|
443
|
+
providerFiles.map((p) => [
|
|
444
|
+
`./${p.provider}`,
|
|
445
|
+
{
|
|
446
|
+
types: `./dist/providers/${p.provider}.d.mts`,
|
|
447
|
+
import: `./dist/providers/${p.provider}.mjs`,
|
|
448
|
+
},
|
|
449
|
+
]),
|
|
450
|
+
),
|
|
442
451
|
};
|
|
443
452
|
|
|
444
|
-
for (const p of providerFiles) {
|
|
445
|
-
exportsMap[`./${p.provider}`] = {
|
|
446
|
-
types: `./dist/providers/${p.provider}.d.mts`,
|
|
447
|
-
import: `./dist/providers/${p.provider}.mjs`,
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
|
|
451
453
|
pkg.exports = exportsMap;
|
|
452
454
|
writeFileSync(PACKAGE_JSON_PATH, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
|
|
453
455
|
ctx.logger.success("package.json exports map updated");
|
package/src/catalog/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type ModelId = LiteralUnion<KnownModelId, string>;
|
|
|
23
23
|
*/
|
|
24
24
|
export const MODELS = GENERATED_MODELS satisfies readonly ModelDefinition[];
|
|
25
25
|
|
|
26
|
+
/** @private */
|
|
26
27
|
const MODEL_INDEX = new Map<string, ModelDefinition>(MODELS.map((m) => [m.id, m]));
|
|
27
28
|
|
|
28
29
|
/**
|
package/src/provider/registry.ts
CHANGED
|
@@ -3,6 +3,14 @@ import { createProviderRegistry as baseCreateProviderRegistry } from "ai";
|
|
|
3
3
|
import type { ModelId } from "@/catalog/index.js";
|
|
4
4
|
import type { LanguageModel } from "@/provider/types.js";
|
|
5
5
|
|
|
6
|
+
/** @private */
|
|
7
|
+
function errorMessage(error: unknown): string {
|
|
8
|
+
if (error instanceof Error) {
|
|
9
|
+
return error.message;
|
|
10
|
+
}
|
|
11
|
+
return String(error);
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* Extract the provider type accepted by the AI SDK's `createProviderRegistry`.
|
|
8
16
|
*
|
|
@@ -86,8 +94,19 @@ export function createProviderRegistry(config: ProviderRegistryConfig): Provider
|
|
|
86
94
|
if (!modelId.trim()) {
|
|
87
95
|
throw new Error("Cannot resolve model: model ID is empty");
|
|
88
96
|
}
|
|
97
|
+
if (!modelId.includes("/")) {
|
|
98
|
+
throw new Error(
|
|
99
|
+
`Invalid model ID "${modelId}": expected "provider/model" format (e.g. "openai/gpt-4.1")`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
89
102
|
// Cast needed: AI SDK overloads expect `provider/model` template literal,
|
|
90
103
|
// But our ModelId is a branded string union. The runtime validates the format.
|
|
91
|
-
|
|
104
|
+
try {
|
|
105
|
+
return inner.languageModel(modelId as `${string}/${string}`) as LanguageModel;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
throw new Error(`Failed to resolve model "${modelId}": ${errorMessage(error)}`, {
|
|
108
|
+
cause: error,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
92
111
|
};
|
|
93
112
|
}
|