@funkai/models 0.1.0
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/.generated/entries.json +23 -0
- package/.generated/req.txt +1 -0
- package/.turbo/turbo-build.log +145 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +23 -0
- package/README.md +95 -0
- package/dist/alibaba-B6q4Ng1R.mjs +957 -0
- package/dist/alibaba-B6q4Ng1R.mjs.map +1 -0
- package/dist/amazon-bedrock-Cv9AHQBH.mjs +2070 -0
- package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -0
- package/dist/anthropic-yB7ST97_.mjs +651 -0
- package/dist/anthropic-yB7ST97_.mjs.map +1 -0
- package/dist/cerebras-COfl7XM-.mjs +95 -0
- package/dist/cerebras-COfl7XM-.mjs.map +1 -0
- package/dist/cohere-B7TgO0hT.mjs +271 -0
- package/dist/cohere-B7TgO0hT.mjs.map +1 -0
- package/dist/deepinfra-B0GxUwCG.mjs +636 -0
- package/dist/deepinfra-B0GxUwCG.mjs.map +1 -0
- package/dist/deepseek-D64ZEsvS.mjs +50 -0
- package/dist/deepseek-D64ZEsvS.mjs.map +1 -0
- package/dist/fireworks-ai-DJYvdAi_.mjs +304 -0
- package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -0
- package/dist/google-BypRl349.mjs +833 -0
- package/dist/google-BypRl349.mjs.map +1 -0
- package/dist/google-vertex-DbS-zTGD.mjs +730 -0
- package/dist/google-vertex-DbS-zTGD.mjs.map +1 -0
- package/dist/groq-ei_PerYi.mjs +381 -0
- package/dist/groq-ei_PerYi.mjs.map +1 -0
- package/dist/huggingface-DaM1EeLP.mjs +456 -0
- package/dist/huggingface-DaM1EeLP.mjs.map +1 -0
- package/dist/inception-CspEzqNV.mjs +101 -0
- package/dist/inception-CspEzqNV.mjs.map +1 -0
- package/dist/index.d.mts +30314 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +271 -0
- package/dist/index.mjs.map +1 -0
- package/dist/llama-Cf3-koap.mjs +161 -0
- package/dist/llama-Cf3-koap.mjs.map +1 -0
- package/dist/mistral-BI9MdAO4.mjs +579 -0
- package/dist/mistral-BI9MdAO4.mjs.map +1 -0
- package/dist/nvidia-COHacuoa.mjs +1625 -0
- package/dist/nvidia-COHacuoa.mjs.map +1 -0
- package/dist/openai-C0nCfZUq.mjs +1023 -0
- package/dist/openai-C0nCfZUq.mjs.map +1 -0
- package/dist/openrouter-DSFzxKQb.mjs +4608 -0
- package/dist/openrouter-DSFzxKQb.mjs.map +1 -0
- package/dist/perplexity-zeZ2WlBU.mjs +96 -0
- package/dist/perplexity-zeZ2WlBU.mjs.map +1 -0
- package/dist/providers/alibaba.d.mts +1795 -0
- package/dist/providers/alibaba.d.mts.map +1 -0
- package/dist/providers/alibaba.mjs +39 -0
- package/dist/providers/alibaba.mjs.map +1 -0
- package/dist/providers/amazon-bedrock.d.mts +3713 -0
- package/dist/providers/amazon-bedrock.d.mts.map +1 -0
- package/dist/providers/amazon-bedrock.mjs +39 -0
- package/dist/providers/amazon-bedrock.mjs.map +1 -0
- package/dist/providers/anthropic.d.mts +1109 -0
- package/dist/providers/anthropic.d.mts.map +1 -0
- package/dist/providers/anthropic.mjs +39 -0
- package/dist/providers/anthropic.mjs.map +1 -0
- package/dist/providers/cerebras.d.mts +219 -0
- package/dist/providers/cerebras.d.mts.map +1 -0
- package/dist/providers/cerebras.mjs +39 -0
- package/dist/providers/cerebras.mjs.map +1 -0
- package/dist/providers/cohere.d.mts +555 -0
- package/dist/providers/cohere.d.mts.map +1 -0
- package/dist/providers/cohere.mjs +39 -0
- package/dist/providers/cohere.mjs.map +1 -0
- package/dist/providers/deepinfra.d.mts +1245 -0
- package/dist/providers/deepinfra.d.mts.map +1 -0
- package/dist/providers/deepinfra.mjs +39 -0
- package/dist/providers/deepinfra.mjs.map +1 -0
- package/dist/providers/deepseek.d.mts +139 -0
- package/dist/providers/deepseek.d.mts.map +1 -0
- package/dist/providers/deepseek.mjs +39 -0
- package/dist/providers/deepseek.mjs.map +1 -0
- package/dist/providers/fireworks-ai.d.mts +611 -0
- package/dist/providers/fireworks-ai.d.mts.map +1 -0
- package/dist/providers/fireworks-ai.mjs +39 -0
- package/dist/providers/fireworks-ai.mjs.map +1 -0
- package/dist/providers/google-vertex.d.mts +1227 -0
- package/dist/providers/google-vertex.d.mts.map +1 -0
- package/dist/providers/google-vertex.mjs +39 -0
- package/dist/providers/google-vertex.mjs.map +1 -0
- package/dist/providers/google.d.mts +1359 -0
- package/dist/providers/google.d.mts.map +1 -0
- package/dist/providers/google.mjs +39 -0
- package/dist/providers/google.mjs.map +1 -0
- package/dist/providers/groq.d.mts +765 -0
- package/dist/providers/groq.d.mts.map +1 -0
- package/dist/providers/groq.mjs +39 -0
- package/dist/providers/groq.mjs.map +1 -0
- package/dist/providers/huggingface.d.mts +901 -0
- package/dist/providers/huggingface.d.mts.map +1 -0
- package/dist/providers/huggingface.mjs +39 -0
- package/dist/providers/huggingface.mjs.map +1 -0
- package/dist/providers/inception.d.mts +231 -0
- package/dist/providers/inception.d.mts.map +1 -0
- package/dist/providers/inception.mjs +39 -0
- package/dist/providers/inception.mjs.map +1 -0
- package/dist/providers/llama.d.mts +345 -0
- package/dist/providers/llama.d.mts.map +1 -0
- package/dist/providers/llama.mjs +39 -0
- package/dist/providers/llama.mjs.map +1 -0
- package/dist/providers/mistral.d.mts +1143 -0
- package/dist/providers/mistral.d.mts.map +1 -0
- package/dist/providers/mistral.mjs +39 -0
- package/dist/providers/mistral.mjs.map +1 -0
- package/dist/providers/nvidia.d.mts +3117 -0
- package/dist/providers/nvidia.d.mts.map +1 -0
- package/dist/providers/nvidia.mjs +39 -0
- package/dist/providers/nvidia.mjs.map +1 -0
- package/dist/providers/openai.d.mts +1963 -0
- package/dist/providers/openai.d.mts.map +1 -0
- package/dist/providers/openai.mjs +39 -0
- package/dist/providers/openai.mjs.map +1 -0
- package/dist/providers/openrouter.d.mts +8531 -0
- package/dist/providers/openrouter.d.mts.map +1 -0
- package/dist/providers/openrouter.mjs +39 -0
- package/dist/providers/openrouter.mjs.map +1 -0
- package/dist/providers/perplexity.d.mts +221 -0
- package/dist/providers/perplexity.d.mts.map +1 -0
- package/dist/providers/perplexity.mjs +39 -0
- package/dist/providers/perplexity.mjs.map +1 -0
- package/dist/providers/togetherai.d.mts +767 -0
- package/dist/providers/togetherai.d.mts.map +1 -0
- package/dist/providers/togetherai.mjs +39 -0
- package/dist/providers/togetherai.mjs.map +1 -0
- package/dist/providers/xai.d.mts +1161 -0
- package/dist/providers/xai.d.mts.map +1 -0
- package/dist/providers/xai.mjs +39 -0
- package/dist/providers/xai.mjs.map +1 -0
- package/dist/togetherai-BvcxUfPE.mjs +382 -0
- package/dist/togetherai-BvcxUfPE.mjs.map +1 -0
- package/dist/types-DjdaZckF.d.mts +71 -0
- package/dist/types-DjdaZckF.d.mts.map +1 -0
- package/dist/xai-fSuAkQJo.mjs +587 -0
- package/dist/xai-fSuAkQJo.mjs.map +1 -0
- package/docs/catalog/filtering.md +102 -0
- package/docs/catalog/overview.md +168 -0
- package/docs/catalog/providers.md +73 -0
- package/docs/cost/overview.md +125 -0
- package/docs/guides/filter-models.md +113 -0
- package/docs/guides/setup-resolver.md +106 -0
- package/docs/guides/track-costs.md +133 -0
- package/docs/overview.md +139 -0
- package/docs/provider/configuration.md +100 -0
- package/docs/provider/openrouter.md +105 -0
- package/docs/provider/overview.md +131 -0
- package/docs/troubleshooting.md +100 -0
- package/package.json +142 -0
- package/providers.json +39 -0
- package/scripts/generate-models.ts +392 -0
- package/src/catalog/index.test.ts +124 -0
- package/src/catalog/index.ts +65 -0
- package/src/catalog/providers/alibaba.ts +468 -0
- package/src/catalog/providers/amazon-bedrock.ts +941 -0
- package/src/catalog/providers/anthropic.ts +270 -0
- package/src/catalog/providers/cerebras.ts +61 -0
- package/src/catalog/providers/cohere.ts +149 -0
- package/src/catalog/providers/deepinfra.ts +325 -0
- package/src/catalog/providers/deepseek.ts +39 -0
- package/src/catalog/providers/fireworks-ai.ts +160 -0
- package/src/catalog/providers/google-vertex.ts +314 -0
- package/src/catalog/providers/google.ts +347 -0
- package/src/catalog/providers/groq.ts +204 -0
- package/src/catalog/providers/huggingface.ts +237 -0
- package/src/catalog/providers/inception.ts +61 -0
- package/src/catalog/providers/index.ts +59 -0
- package/src/catalog/providers/llama.ts +94 -0
- package/src/catalog/providers/mistral.ts +303 -0
- package/src/catalog/providers/nvidia.ts +820 -0
- package/src/catalog/providers/openai.ts +501 -0
- package/src/catalog/providers/openrouter.ts +2201 -0
- package/src/catalog/providers/perplexity.ts +61 -0
- package/src/catalog/providers/togetherai.ts +204 -0
- package/src/catalog/providers/xai.ts +292 -0
- package/src/catalog/types.ts +86 -0
- package/src/cost/calculate.test.ts +157 -0
- package/src/cost/calculate.ts +43 -0
- package/src/cost/index.ts +2 -0
- package/src/cost/types.ts +25 -0
- package/src/index.ts +25 -0
- package/src/provider/index.ts +9 -0
- package/src/provider/openrouter.test.ts +125 -0
- package/src/provider/openrouter.ts +110 -0
- package/src/provider/resolver.test.ts +138 -0
- package/src/provider/resolver.ts +125 -0
- package/src/provider/types.ts +39 -0
- package/src/providers/alibaba.ts +65 -0
- package/src/providers/amazon-bedrock.ts +67 -0
- package/src/providers/anthropic.ts +65 -0
- package/src/providers/cerebras.ts +65 -0
- package/src/providers/cohere.ts +65 -0
- package/src/providers/deepinfra.ts +65 -0
- package/src/providers/deepseek.ts +65 -0
- package/src/providers/fireworks-ai.ts +65 -0
- package/src/providers/google-vertex.ts +67 -0
- package/src/providers/google.ts +65 -0
- package/src/providers/groq.ts +65 -0
- package/src/providers/huggingface.ts +67 -0
- package/src/providers/inception.ts +65 -0
- package/src/providers/llama.ts +65 -0
- package/src/providers/mistral.ts +65 -0
- package/src/providers/nvidia.ts +65 -0
- package/src/providers/openai.ts +65 -0
- package/src/providers/openrouter.ts +67 -0
- package/src/providers/perplexity.ts +67 -0
- package/src/providers/togetherai.ts +65 -0
- package/src/providers/xai.ts +65 -0
- package/tsconfig.json +25 -0
- package/tsdown.config.ts +23 -0
- package/vitest.config.ts +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/catalog/providers/index.ts","../src/catalog/index.ts","../src/provider/types.ts","../src/provider/openrouter.ts","../src/provider/resolver.ts","../src/cost/types.ts","../src/cost/calculate.ts"],"mappings":";;;;;;cAoCa,QAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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kBAAA;;;;;;;;;;;;;;;;;;;cAmE3D,UAAA,GAAa,OAAA,EAAS,OAAA,KAAY,aAAA;;;;;;;AHvD/C;;;;;;;KItBY,eAAA,IAAmB,SAAA,aAAsB,aAAA;;;;;KAMzC,WAAA,GAAc,QAAA,CAAS,MAAA,SAAe,eAAA;;;;UAKjC,mBAAA;;;;;;;;WAQN,SAAA,GAAY,WAAA;;;;;;;;;;;;;;;;;WAkBZ,QAAA,IAAY,OAAA,aAAoB,aAAA;AAAA;;;;KAM/B,aAAA,IAAiB,OAAA,EAAS,OAAA,KAAY,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BlC,mBAAA,CAAoB,MAAA,GAAS,mBAAA,GAAsB,aAAA;;;;;;;;;UCjFlD,SAAA;ELoD8B;EAAA,SKlDpC,KAAA;ELkDoC;EAAA,SK/CpC,MAAA;;WAGA,SAAA;;WAGA,UAAA;;WAGA,SAAA;;WAGA,KAAA;AAAA;;;;;;ALaX;;;;;;;;;;;;;;;;;;;;;;;;;;iBMHgB,aAAA,CAAc,KAAA,EAAO,UAAA,EAAY,OAAA,EAAS,YAAA,GAAe,SAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { t as ALIBABA_MODELS } from "./alibaba-B6q4Ng1R.mjs";
|
|
2
|
+
import { t as AMAZON_BEDROCK_MODELS } from "./amazon-bedrock-Cv9AHQBH.mjs";
|
|
3
|
+
import { t as ANTHROPIC_MODELS } from "./anthropic-yB7ST97_.mjs";
|
|
4
|
+
import { t as CEREBRAS_MODELS } from "./cerebras-COfl7XM-.mjs";
|
|
5
|
+
import { t as COHERE_MODELS } from "./cohere-B7TgO0hT.mjs";
|
|
6
|
+
import { t as DEEPINFRA_MODELS } from "./deepinfra-B0GxUwCG.mjs";
|
|
7
|
+
import { t as DEEPSEEK_MODELS } from "./deepseek-D64ZEsvS.mjs";
|
|
8
|
+
import { t as FIREWORKS_AI_MODELS } from "./fireworks-ai-DJYvdAi_.mjs";
|
|
9
|
+
import { t as GOOGLE_VERTEX_MODELS } from "./google-vertex-DbS-zTGD.mjs";
|
|
10
|
+
import { t as GOOGLE_MODELS } from "./google-BypRl349.mjs";
|
|
11
|
+
import { t as GROQ_MODELS } from "./groq-ei_PerYi.mjs";
|
|
12
|
+
import { t as HUGGINGFACE_MODELS } from "./huggingface-DaM1EeLP.mjs";
|
|
13
|
+
import { t as INCEPTION_MODELS } from "./inception-CspEzqNV.mjs";
|
|
14
|
+
import { t as LLAMA_MODELS } from "./llama-Cf3-koap.mjs";
|
|
15
|
+
import { t as MISTRAL_MODELS } from "./mistral-BI9MdAO4.mjs";
|
|
16
|
+
import { t as NVIDIA_MODELS } from "./nvidia-COHacuoa.mjs";
|
|
17
|
+
import { t as OPENAI_MODELS } from "./openai-C0nCfZUq.mjs";
|
|
18
|
+
import { t as OPENROUTER_MODELS } from "./openrouter-DSFzxKQb.mjs";
|
|
19
|
+
import { t as PERPLEXITY_MODELS } from "./perplexity-zeZ2WlBU.mjs";
|
|
20
|
+
import { t as TOGETHERAI_MODELS } from "./togetherai-BvcxUfPE.mjs";
|
|
21
|
+
import { t as XAI_MODELS } from "./xai-fSuAkQJo.mjs";
|
|
22
|
+
import { createOpenRouter as createOpenRouter$1 } from "@openrouter/ai-sdk-provider";
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/catalog/index.ts
|
|
25
|
+
/**
|
|
26
|
+
* All supported models with pricing and capability data.
|
|
27
|
+
*/
|
|
28
|
+
const MODELS = [
|
|
29
|
+
...OPENAI_MODELS,
|
|
30
|
+
...ANTHROPIC_MODELS,
|
|
31
|
+
...GOOGLE_MODELS,
|
|
32
|
+
...GOOGLE_VERTEX_MODELS,
|
|
33
|
+
...MISTRAL_MODELS,
|
|
34
|
+
...AMAZON_BEDROCK_MODELS,
|
|
35
|
+
...GROQ_MODELS,
|
|
36
|
+
...DEEPSEEK_MODELS,
|
|
37
|
+
...XAI_MODELS,
|
|
38
|
+
...COHERE_MODELS,
|
|
39
|
+
...FIREWORKS_AI_MODELS,
|
|
40
|
+
...TOGETHERAI_MODELS,
|
|
41
|
+
...DEEPINFRA_MODELS,
|
|
42
|
+
...CEREBRAS_MODELS,
|
|
43
|
+
...PERPLEXITY_MODELS,
|
|
44
|
+
...OPENROUTER_MODELS,
|
|
45
|
+
...LLAMA_MODELS,
|
|
46
|
+
...ALIBABA_MODELS,
|
|
47
|
+
...NVIDIA_MODELS,
|
|
48
|
+
...HUGGINGFACE_MODELS,
|
|
49
|
+
...INCEPTION_MODELS
|
|
50
|
+
];
|
|
51
|
+
const MODEL_INDEX = new Map(MODELS.map((m) => [m.id, m]));
|
|
52
|
+
/**
|
|
53
|
+
* Look up a model definition by its identifier.
|
|
54
|
+
*
|
|
55
|
+
* Returns `null` when the ID is not in the catalog — callers should
|
|
56
|
+
* handle missing models gracefully (e.g. custom or newly released models).
|
|
57
|
+
*
|
|
58
|
+
* @param id - The model identifier to look up.
|
|
59
|
+
* @returns The matching model definition, or `null`.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* const m = model('gpt-4.1')
|
|
64
|
+
* if (m) {
|
|
65
|
+
* console.log(m.pricing.input)
|
|
66
|
+
* console.log(m.capabilities.reasoning)
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
function model(id) {
|
|
71
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Return supported model definitions, optionally filtered.
|
|
75
|
+
*
|
|
76
|
+
* @param filter - Optional predicate to filter models.
|
|
77
|
+
* @returns A readonly array of matching model definitions.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* const all = models()
|
|
82
|
+
* const reasoning = models((m) => m.capabilities.reasoning)
|
|
83
|
+
* const vision = models((m) => m.modalities.input.includes('image'))
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
function models(filter) {
|
|
87
|
+
return filter ? MODELS.filter(filter) : MODELS;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/provider/openrouter.ts
|
|
91
|
+
/**
|
|
92
|
+
* Create an OpenRouter provider instance with automatic API key resolution.
|
|
93
|
+
*
|
|
94
|
+
* Falls back to the `OPENROUTER_API_KEY` environment variable when
|
|
95
|
+
* no explicit `apiKey` is provided in the options.
|
|
96
|
+
*
|
|
97
|
+
* @param options - Provider settings forwarded to `@openrouter/ai-sdk-provider`.
|
|
98
|
+
* @returns A configured {@link OpenRouterProvider} instance.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const openrouter = createOpenRouter({ apiKey: 'sk-...' })
|
|
103
|
+
* const m = openrouter('openai/gpt-5.2-codex')
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
function createOpenRouter(options) {
|
|
107
|
+
const apiKey = resolveApiKey(options);
|
|
108
|
+
return createOpenRouter$1({
|
|
109
|
+
...options,
|
|
110
|
+
apiKey
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
116
|
+
function resolveApiKey(options) {
|
|
117
|
+
if (options != null && options.apiKey != null) return options.apiKey;
|
|
118
|
+
return getOpenRouterApiKey();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Create a cached OpenRouter model resolver.
|
|
122
|
+
*
|
|
123
|
+
* The returned function caches the underlying provider and invalidates
|
|
124
|
+
* when the API key changes at runtime.
|
|
125
|
+
*
|
|
126
|
+
* @returns A function that resolves a model ID to a {@link LanguageModel}.
|
|
127
|
+
*
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
function createCachedOpenRouter() {
|
|
131
|
+
const cache = {
|
|
132
|
+
provider: void 0,
|
|
133
|
+
apiKey: void 0
|
|
134
|
+
};
|
|
135
|
+
return (modelId) => {
|
|
136
|
+
const apiKey = getOpenRouterApiKey();
|
|
137
|
+
if (!cache.provider || cache.apiKey !== apiKey) {
|
|
138
|
+
cache.provider = createOpenRouter$1({ apiKey });
|
|
139
|
+
cache.apiKey = apiKey;
|
|
140
|
+
}
|
|
141
|
+
return cache.provider(modelId);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Shorthand for creating a single OpenRouter language model.
|
|
146
|
+
*
|
|
147
|
+
* Resolves the API key from the environment and returns a ready-to-use
|
|
148
|
+
* {@link LanguageModel} that can be passed directly to AI SDK functions.
|
|
149
|
+
*
|
|
150
|
+
* The provider instance is cached at module scope and reused across
|
|
151
|
+
* calls. If `OPENROUTER_API_KEY` changes at runtime, the cache is
|
|
152
|
+
* invalidated and a new provider is created.
|
|
153
|
+
*
|
|
154
|
+
* @param modelId - A model identifier (e.g. `"openai/gpt-5.2-codex"`).
|
|
155
|
+
* @returns A configured {@link LanguageModel} instance.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```typescript
|
|
159
|
+
* const m = openrouter('openai/gpt-5.2-codex')
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
const openrouter = createCachedOpenRouter();
|
|
163
|
+
/**
|
|
164
|
+
* Read the OpenRouter API key from the environment.
|
|
165
|
+
*
|
|
166
|
+
* @throws {Error} If `OPENROUTER_API_KEY` is not set.
|
|
167
|
+
*
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
170
|
+
function getOpenRouterApiKey() {
|
|
171
|
+
const apiKey = process.env.OPENROUTER_API_KEY;
|
|
172
|
+
if (!apiKey) throw new Error("OPENROUTER_API_KEY environment variable is required. Set it in your .env file or environment.");
|
|
173
|
+
return apiKey;
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/provider/resolver.ts
|
|
177
|
+
/**
|
|
178
|
+
* Create a model resolver with configurable provider mappings.
|
|
179
|
+
*
|
|
180
|
+
* When a model ID like `"openai/gpt-4.1"` is resolved:
|
|
181
|
+
* 1. The provider prefix (`"openai"`) is extracted
|
|
182
|
+
* 2. If a direct provider is mapped for that prefix, it receives the model portion (`"gpt-4.1"`)
|
|
183
|
+
* 3. Otherwise, the fallback is called with the full ID (if configured)
|
|
184
|
+
* 4. If no fallback, an error is thrown
|
|
185
|
+
*
|
|
186
|
+
* @param config - Provider mappings and fallback configuration.
|
|
187
|
+
* @returns A resolver function that maps model IDs to {@link LanguageModel} instances.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```typescript
|
|
191
|
+
* import { createOpenAI } from '@ai-sdk/openai'
|
|
192
|
+
* import { createAnthropic } from '@ai-sdk/anthropic'
|
|
193
|
+
*
|
|
194
|
+
* const resolve = createModelResolver({
|
|
195
|
+
* providers: {
|
|
196
|
+
* openai: createOpenAI({ apiKey: '...' }),
|
|
197
|
+
* anthropic: createAnthropic({ apiKey: '...' }),
|
|
198
|
+
* },
|
|
199
|
+
* })
|
|
200
|
+
*
|
|
201
|
+
* const m1 = resolve('openai/gpt-4.1') // uses @ai-sdk/openai directly
|
|
202
|
+
* const m2 = resolve('anthropic/claude-sonnet-4') // uses @ai-sdk/anthropic directly
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
function createModelResolver(config) {
|
|
206
|
+
const providers = config?.providers ?? {};
|
|
207
|
+
const fallback = config?.fallback;
|
|
208
|
+
return (modelId) => {
|
|
209
|
+
if (!modelId.trim()) throw new Error("Cannot resolve model: model ID is empty");
|
|
210
|
+
const slashIndex = modelId.indexOf("/");
|
|
211
|
+
if (slashIndex === -1) {
|
|
212
|
+
if (fallback) return fallback(modelId);
|
|
213
|
+
throw new Error(`Cannot resolve model "${modelId}": no provider prefix and no fallback configured`);
|
|
214
|
+
}
|
|
215
|
+
const prefix = modelId.slice(0, slashIndex);
|
|
216
|
+
const factory = providers[prefix];
|
|
217
|
+
if (factory) return factory(modelId.slice(slashIndex + 1));
|
|
218
|
+
if (fallback) return fallback(modelId);
|
|
219
|
+
throw new Error(`Cannot resolve model "${modelId}": no provider mapped for "${prefix}" and no fallback configured`);
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/cost/calculate.ts
|
|
224
|
+
/**
|
|
225
|
+
* Calculate the dollar cost from token usage and model pricing.
|
|
226
|
+
*
|
|
227
|
+
* Multiplies each token count by the corresponding per-token pricing rate.
|
|
228
|
+
* Optional pricing fields (cache) default to `0` when absent.
|
|
229
|
+
*
|
|
230
|
+
* @param usage - Token counts from a model invocation.
|
|
231
|
+
* @param pricing - Per-token pricing rates for the model.
|
|
232
|
+
* @returns A {@link UsageCost} with per-field and total costs in USD.
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```typescript
|
|
236
|
+
* import { calculateCost, model } from '@funkai/models'
|
|
237
|
+
*
|
|
238
|
+
* const usage: TokenUsage = {
|
|
239
|
+
* inputTokens: 1000,
|
|
240
|
+
* outputTokens: 500,
|
|
241
|
+
* totalTokens: 1500,
|
|
242
|
+
* cacheReadTokens: 200,
|
|
243
|
+
* cacheWriteTokens: 0,
|
|
244
|
+
* reasoningTokens: 0,
|
|
245
|
+
* }
|
|
246
|
+
* const m = model('gpt-4.1')
|
|
247
|
+
* if (m) {
|
|
248
|
+
* const cost = calculateCost(usage, m.pricing)
|
|
249
|
+
* console.log(cost.total) // 0.006
|
|
250
|
+
* }
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
function calculateCost(usage, pricing) {
|
|
254
|
+
const input = usage.inputTokens * pricing.input;
|
|
255
|
+
const output = usage.outputTokens * pricing.output;
|
|
256
|
+
const cacheRead = usage.cacheReadTokens * (pricing.cacheRead ?? 0);
|
|
257
|
+
const cacheWrite = usage.cacheWriteTokens * (pricing.cacheWrite ?? 0);
|
|
258
|
+
const reasoning = usage.reasoningTokens * (pricing.reasoning ?? 0);
|
|
259
|
+
return {
|
|
260
|
+
input,
|
|
261
|
+
output,
|
|
262
|
+
cacheRead,
|
|
263
|
+
cacheWrite,
|
|
264
|
+
reasoning,
|
|
265
|
+
total: input + output + cacheRead + cacheWrite + reasoning
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
export { MODELS, calculateCost, createModelResolver, createOpenRouter, model, models, openrouter };
|
|
270
|
+
|
|
271
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["MODELS","GENERATED_MODELS","baseCreateOpenRouter"],"sources":["../src/catalog/providers/index.ts","../src/catalog/index.ts","../src/provider/openrouter.ts","../src/provider/resolver.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\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 return filter ? MODELS.filter(filter) : MODELS;\n}\n","import {\n createOpenRouter as baseCreateOpenRouter,\n type OpenRouterProvider,\n type OpenRouterProviderSettings,\n} from \"@openrouter/ai-sdk-provider\";\n\nimport type { ModelId } from \"@/catalog/index.js\";\nimport type { LanguageModel } from \"@/provider/types.js\";\n\n/**\n * Create an OpenRouter provider instance with automatic API key resolution.\n *\n * Falls back to the `OPENROUTER_API_KEY` environment variable when\n * no explicit `apiKey` is provided in the options.\n *\n * @param options - Provider settings forwarded to `@openrouter/ai-sdk-provider`.\n * @returns A configured {@link OpenRouterProvider} instance.\n *\n * @example\n * ```typescript\n * const openrouter = createOpenRouter({ apiKey: 'sk-...' })\n * const m = openrouter('openai/gpt-5.2-codex')\n * ```\n */\nexport function createOpenRouter(options?: OpenRouterProviderSettings): OpenRouterProvider {\n const apiKey = resolveApiKey(options);\n return baseCreateOpenRouter({\n ...options,\n apiKey,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Private helpers\n// ---------------------------------------------------------------------------\n\n/**\n * @private\n */\nfunction resolveApiKey(options: OpenRouterProviderSettings | undefined): string {\n if (options != null && options.apiKey != null) {\n return options.apiKey;\n }\n return getOpenRouterApiKey();\n}\n\n/**\n * Create a cached OpenRouter model resolver.\n *\n * The returned function caches the underlying provider and invalidates\n * when the API key changes at runtime.\n *\n * @returns A function that resolves a model ID to a {@link LanguageModel}.\n *\n * @private\n */\n// Cache mutation is safe: JS is single-threaded and baseCreateOpenRouter is synchronous.\n// If this were refactored to async initialization, a lock or re-architecture would be needed.\nfunction createCachedOpenRouter(): (modelId: ModelId) => LanguageModel {\n const cache: { provider: OpenRouterProvider | undefined; apiKey: string | undefined } = {\n provider: undefined,\n apiKey: undefined,\n };\n return (modelId: ModelId): LanguageModel => {\n const apiKey = getOpenRouterApiKey();\n if (!cache.provider || cache.apiKey !== apiKey) {\n cache.provider = baseCreateOpenRouter({ apiKey });\n cache.apiKey = apiKey;\n }\n return cache.provider(modelId);\n };\n}\n\n/**\n * Shorthand for creating a single OpenRouter language model.\n *\n * Resolves the API key from the environment and returns a ready-to-use\n * {@link LanguageModel} that can be passed directly to AI SDK functions.\n *\n * The provider instance is cached at module scope and reused across\n * calls. If `OPENROUTER_API_KEY` changes at runtime, the cache is\n * invalidated and a new provider is created.\n *\n * @param modelId - A model identifier (e.g. `\"openai/gpt-5.2-codex\"`).\n * @returns A configured {@link LanguageModel} instance.\n *\n * @example\n * ```typescript\n * const m = openrouter('openai/gpt-5.2-codex')\n * ```\n */\nexport const openrouter: (modelId: ModelId) => LanguageModel = createCachedOpenRouter();\n\n/**\n * Read the OpenRouter API key from the environment.\n *\n * @throws {Error} If `OPENROUTER_API_KEY` is not set.\n *\n * @private\n */\nfunction getOpenRouterApiKey(): string {\n const apiKey = process.env.OPENROUTER_API_KEY;\n if (!apiKey) {\n throw new Error(\n \"OPENROUTER_API_KEY environment variable is required. \" +\n \"Set it in your .env file or environment.\",\n );\n }\n return apiKey;\n}\n","import type { ModelId } from \"@/catalog/index.js\";\nimport type { LanguageModel } from \"@/provider/types.js\";\n\n/**\n * A function that resolves a provider-specific model name to a {@link LanguageModel}.\n *\n * @example\n * ```typescript\n * import { createOpenAI } from '@ai-sdk/openai'\n *\n * const factory: ProviderFactory = createOpenAI({ apiKey: '...' })\n * const model = factory('gpt-4.1')\n * ```\n */\nexport type ProviderFactory = (modelName: string) => LanguageModel;\n\n/**\n * Mapping from provider prefix (e.g. `\"openai\"`, `\"anthropic\"`) to a factory\n * that creates {@link LanguageModel} instances for that provider.\n */\nexport type ProviderMap = Readonly<Record<string, ProviderFactory>>;\n\n/**\n * Configuration for {@link createModelResolver}.\n */\nexport interface ModelResolverConfig {\n /**\n * Direct AI SDK provider mappings 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. If found, the\n * factory receives the model portion (`\"gpt-4.1\"`).\n */\n readonly providers?: ProviderMap;\n\n /**\n * A fallback factory used when no mapped provider matches.\n *\n * Receives the full model ID string. Useful for routing unmapped\n * providers through an aggregator like OpenRouter.\n *\n * @example\n * ```typescript\n * import { openrouter } from '@funkai/models'\n *\n * const resolve = createModelResolver({\n * providers: { openai: createOpenAI({ apiKey: '...' }) },\n * fallback: openrouter,\n * })\n * ```\n */\n readonly fallback?: (modelId: string) => LanguageModel;\n}\n\n/**\n * A function that resolves a model ID to a {@link LanguageModel} instance.\n */\nexport type ModelResolver = (modelId: ModelId) => LanguageModel;\n\n/**\n * Create a model resolver with configurable provider mappings.\n *\n * When a model ID like `\"openai/gpt-4.1\"` is resolved:\n * 1. The provider prefix (`\"openai\"`) is extracted\n * 2. If a direct provider is mapped for that prefix, it receives the model portion (`\"gpt-4.1\"`)\n * 3. Otherwise, the fallback is called with the full ID (if configured)\n * 4. If no fallback, an error is thrown\n *\n * @param config - Provider mappings and fallback configuration.\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 { createAnthropic } from '@ai-sdk/anthropic'\n *\n * const resolve = createModelResolver({\n * providers: {\n * openai: createOpenAI({ apiKey: '...' }),\n * anthropic: createAnthropic({ apiKey: '...' }),\n * },\n * })\n *\n * const m1 = resolve('openai/gpt-4.1') // uses @ai-sdk/openai directly\n * const m2 = resolve('anthropic/claude-sonnet-4') // uses @ai-sdk/anthropic directly\n * ```\n */\nexport function createModelResolver(config?: ModelResolverConfig): ModelResolver {\n const providers = config?.providers ?? {};\n const fallback = config?.fallback;\n\n return (modelId: ModelId): LanguageModel => {\n if (!modelId.trim()) {\n throw new Error(\"Cannot resolve model: model ID is empty\");\n }\n\n const slashIndex = modelId.indexOf(\"/\");\n\n if (slashIndex === -1) {\n if (fallback) {\n return fallback(modelId);\n }\n throw new Error(\n `Cannot resolve model \"${modelId}\": no provider prefix and no fallback configured`,\n );\n }\n\n const prefix = modelId.slice(0, slashIndex);\n // eslint-disable-next-line security/detect-object-injection -- Prefix extracted from user model ID, used as record key lookup\n const factory = providers[prefix];\n\n if (factory) {\n const modelName = modelId.slice(slashIndex + 1);\n return factory(modelName);\n }\n\n if (fallback) {\n return fallback(modelId);\n }\n\n throw new Error(\n `Cannot resolve model \"${modelId}\": no provider mapped for \"${prefix}\" and no fallback configured`,\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,SDaS;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,QAAO,SAAS,OAAO,OAAO,OAAO,GAAG;;;;;;;;;;;;;;;;;;;ACvC1C,SAAgB,iBAAiB,SAA0D;CACzF,MAAM,SAAS,cAAc,QAAQ;AACrC,QAAOE,mBAAqB;EAC1B,GAAG;EACH;EACD,CAAC;;;;;AAUJ,SAAS,cAAc,SAAyD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Q,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"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
//#region src/catalog/providers/llama.ts
|
|
2
|
+
const LLAMA_MODELS = [
|
|
3
|
+
{
|
|
4
|
+
id: "cerebras-llama-4-maverick-17b-128e-instruct",
|
|
5
|
+
name: "Cerebras-Llama-4-Maverick-17B-128E-Instruct",
|
|
6
|
+
provider: "llama",
|
|
7
|
+
family: "llama",
|
|
8
|
+
pricing: {
|
|
9
|
+
input: 0,
|
|
10
|
+
output: 0
|
|
11
|
+
},
|
|
12
|
+
contextWindow: 128e3,
|
|
13
|
+
maxOutput: 4096,
|
|
14
|
+
modalities: {
|
|
15
|
+
input: ["text"],
|
|
16
|
+
output: ["text"]
|
|
17
|
+
},
|
|
18
|
+
capabilities: {
|
|
19
|
+
reasoning: false,
|
|
20
|
+
toolCall: true,
|
|
21
|
+
attachment: true,
|
|
22
|
+
structuredOutput: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "llama-4-scout-17b-16e-instruct-fp8",
|
|
27
|
+
name: "Llama-4-Scout-17B-16E-Instruct-FP8",
|
|
28
|
+
provider: "llama",
|
|
29
|
+
family: "llama",
|
|
30
|
+
pricing: {
|
|
31
|
+
input: 0,
|
|
32
|
+
output: 0
|
|
33
|
+
},
|
|
34
|
+
contextWindow: 128e3,
|
|
35
|
+
maxOutput: 4096,
|
|
36
|
+
modalities: {
|
|
37
|
+
input: ["text", "image"],
|
|
38
|
+
output: ["text"]
|
|
39
|
+
},
|
|
40
|
+
capabilities: {
|
|
41
|
+
reasoning: false,
|
|
42
|
+
toolCall: true,
|
|
43
|
+
attachment: true,
|
|
44
|
+
structuredOutput: false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "llama-3.3-8b-instruct",
|
|
49
|
+
name: "Llama-3.3-8B-Instruct",
|
|
50
|
+
provider: "llama",
|
|
51
|
+
family: "llama",
|
|
52
|
+
pricing: {
|
|
53
|
+
input: 0,
|
|
54
|
+
output: 0
|
|
55
|
+
},
|
|
56
|
+
contextWindow: 128e3,
|
|
57
|
+
maxOutput: 4096,
|
|
58
|
+
modalities: {
|
|
59
|
+
input: ["text"],
|
|
60
|
+
output: ["text"]
|
|
61
|
+
},
|
|
62
|
+
capabilities: {
|
|
63
|
+
reasoning: false,
|
|
64
|
+
toolCall: true,
|
|
65
|
+
attachment: true,
|
|
66
|
+
structuredOutput: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "groq-llama-4-maverick-17b-128e-instruct",
|
|
71
|
+
name: "Groq-Llama-4-Maverick-17B-128E-Instruct",
|
|
72
|
+
provider: "llama",
|
|
73
|
+
family: "llama",
|
|
74
|
+
pricing: {
|
|
75
|
+
input: 0,
|
|
76
|
+
output: 0
|
|
77
|
+
},
|
|
78
|
+
contextWindow: 128e3,
|
|
79
|
+
maxOutput: 4096,
|
|
80
|
+
modalities: {
|
|
81
|
+
input: ["text"],
|
|
82
|
+
output: ["text"]
|
|
83
|
+
},
|
|
84
|
+
capabilities: {
|
|
85
|
+
reasoning: false,
|
|
86
|
+
toolCall: true,
|
|
87
|
+
attachment: true,
|
|
88
|
+
structuredOutput: false
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "llama-3.3-70b-instruct",
|
|
93
|
+
name: "Llama-3.3-70B-Instruct",
|
|
94
|
+
provider: "llama",
|
|
95
|
+
family: "llama",
|
|
96
|
+
pricing: {
|
|
97
|
+
input: 0,
|
|
98
|
+
output: 0
|
|
99
|
+
},
|
|
100
|
+
contextWindow: 128e3,
|
|
101
|
+
maxOutput: 4096,
|
|
102
|
+
modalities: {
|
|
103
|
+
input: ["text"],
|
|
104
|
+
output: ["text"]
|
|
105
|
+
},
|
|
106
|
+
capabilities: {
|
|
107
|
+
reasoning: false,
|
|
108
|
+
toolCall: true,
|
|
109
|
+
attachment: true,
|
|
110
|
+
structuredOutput: false
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "cerebras-llama-4-scout-17b-16e-instruct",
|
|
115
|
+
name: "Cerebras-Llama-4-Scout-17B-16E-Instruct",
|
|
116
|
+
provider: "llama",
|
|
117
|
+
family: "llama",
|
|
118
|
+
pricing: {
|
|
119
|
+
input: 0,
|
|
120
|
+
output: 0
|
|
121
|
+
},
|
|
122
|
+
contextWindow: 128e3,
|
|
123
|
+
maxOutput: 4096,
|
|
124
|
+
modalities: {
|
|
125
|
+
input: ["text"],
|
|
126
|
+
output: ["text"]
|
|
127
|
+
},
|
|
128
|
+
capabilities: {
|
|
129
|
+
reasoning: false,
|
|
130
|
+
toolCall: true,
|
|
131
|
+
attachment: true,
|
|
132
|
+
structuredOutput: false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: "llama-4-maverick-17b-128e-instruct-fp8",
|
|
137
|
+
name: "Llama-4-Maverick-17B-128E-Instruct-FP8",
|
|
138
|
+
provider: "llama",
|
|
139
|
+
family: "llama",
|
|
140
|
+
pricing: {
|
|
141
|
+
input: 0,
|
|
142
|
+
output: 0
|
|
143
|
+
},
|
|
144
|
+
contextWindow: 128e3,
|
|
145
|
+
maxOutput: 4096,
|
|
146
|
+
modalities: {
|
|
147
|
+
input: ["text", "image"],
|
|
148
|
+
output: ["text"]
|
|
149
|
+
},
|
|
150
|
+
capabilities: {
|
|
151
|
+
reasoning: false,
|
|
152
|
+
toolCall: true,
|
|
153
|
+
attachment: true,
|
|
154
|
+
structuredOutput: false
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
//#endregion
|
|
159
|
+
export { LLAMA_MODELS as t };
|
|
160
|
+
|
|
161
|
+
//# sourceMappingURL=llama-Cf3-koap.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llama-Cf3-koap.mjs","names":[],"sources":["../src/catalog/providers/llama.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\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const LLAMA_MODELS = [\n {\n id: \"cerebras-llama-4-maverick-17b-128e-instruct\",\n name: \"Cerebras-Llama-4-Maverick-17B-128E-Instruct\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"llama-4-scout-17b-16e-instruct-fp8\",\n name: \"Llama-4-Scout-17B-16E-Instruct-FP8\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"llama-3.3-8b-instruct\",\n name: \"Llama-3.3-8B-Instruct\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"groq-llama-4-maverick-17b-128e-instruct\",\n name: \"Groq-Llama-4-Maverick-17B-128E-Instruct\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"llama-3.3-70b-instruct\",\n name: \"Llama-3.3-70B-Instruct\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"cerebras-llama-4-scout-17b-16e-instruct\",\n name: \"Cerebras-Llama-4-Scout-17B-16E-Instruct\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"llama-4-maverick-17b-128e-instruct-fp8\",\n name: \"Llama-4-Maverick-17B-128E-Instruct-FP8\",\n provider: \"llama\",\n family: \"llama\",\n pricing: { input: 0, output: 0 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,eAAe;CAC1B;EACE,IAAI;EACJ,MAAM;EACN,U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