@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":"huggingface.d.mts","names":[],"sources":["../../src/catalog/providers/huggingface.ts","../../src/providers/huggingface.ts"],"mappings":";;;;cAea,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,kBAAA,WAA6B,kBAAA;;;;;;;;;;;;;cAc5B,iBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,gBAAA,CACd,EAAA,EAAI,YAAA,CAAa,kBAAA,YAChB,eAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as HUGGINGFACE_MODELS } from "../huggingface-DaM1EeLP.mjs";
|
|
2
|
+
//#region src/providers/huggingface.ts
|
|
3
|
+
/**
|
|
4
|
+
* All Hugging Face models in the catalog.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { huggingFaceModels } from '@funkai/models/huggingface'
|
|
9
|
+
*
|
|
10
|
+
* for (const m of huggingFaceModels) {
|
|
11
|
+
* console.log(m.id, m.pricing.input)
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const huggingFaceModels = HUGGINGFACE_MODELS;
|
|
16
|
+
const MODEL_INDEX = new Map(HUGGINGFACE_MODELS.map((m) => [m.id, m]));
|
|
17
|
+
/**
|
|
18
|
+
* Look up a Hugging Face model by ID.
|
|
19
|
+
*
|
|
20
|
+
* @param id - The provider-native model identifier.
|
|
21
|
+
* @returns The matching model definition, or `null`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import { huggingFaceModel } from '@funkai/models/huggingface'
|
|
26
|
+
*
|
|
27
|
+
* const m = huggingFaceModel('zai-org/GLM-4.7-Flash')
|
|
28
|
+
* if (m) {
|
|
29
|
+
* console.log(m.pricing.input)
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function huggingFaceModel(id) {
|
|
34
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { huggingFaceModel, huggingFaceModels };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=huggingface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"huggingface.mjs","names":[],"sources":["../../src/providers/huggingface.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 { LiteralUnion } from \"type-fest\";\n\nimport { HUGGINGFACE_MODELS } from \"../catalog/providers/huggingface.js\";\nimport type { ModelDefinition } from \"../catalog/types.js\";\n\n/**\n * Known model identifiers for Hugging Face.\n *\n * @example\n * ```typescript\n * import type { HuggingFaceModelId } from '@funkai/models/huggingface'\n *\n * const id: HuggingFaceModelId = 'zai-org/GLM-4.7-Flash'\n * ```\n */\nexport type HuggingFaceModelId = (typeof HUGGINGFACE_MODELS)[number][\"id\"];\n\n/**\n * All Hugging Face models in the catalog.\n *\n * @example\n * ```typescript\n * import { huggingFaceModels } from '@funkai/models/huggingface'\n *\n * for (const m of huggingFaceModels) {\n * console.log(m.id, m.pricing.input)\n * }\n * ```\n */\nexport const huggingFaceModels = HUGGINGFACE_MODELS;\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(HUGGINGFACE_MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a Hugging Face model by ID.\n *\n * @param id - The provider-native model identifier.\n * @returns The matching model definition, or `null`.\n *\n * @example\n * ```typescript\n * import { huggingFaceModel } from '@funkai/models/huggingface'\n *\n * const m = huggingFaceModel('zai-org/GLM-4.7-Flash')\n * if (m) {\n * console.log(m.pricing.input)\n * }\n * ```\n */\nexport function huggingFaceModel(\n id: LiteralUnion<HuggingFaceModelId, string>,\n): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAa,oBAAoB;AAEjC,MAAM,cAAc,IAAI,IAA6B,mBAAmB,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;AAkB9F,SAAgB,iBACd,IACwB;AACxB,QAAO,YAAY,IAAI,GAAG,IAAI"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
|
|
2
|
+
import { LiteralUnion } from "type-fest";
|
|
3
|
+
|
|
4
|
+
//#region src/catalog/providers/inception.d.ts
|
|
5
|
+
declare const INCEPTION_MODELS: readonly [{
|
|
6
|
+
readonly id: "mercury-2";
|
|
7
|
+
readonly name: "Mercury 2";
|
|
8
|
+
readonly provider: "inception";
|
|
9
|
+
readonly family: "mercury";
|
|
10
|
+
readonly pricing: {
|
|
11
|
+
readonly input: 2.5e-7;
|
|
12
|
+
readonly output: 7.5e-7;
|
|
13
|
+
readonly cacheRead: 2.5e-8;
|
|
14
|
+
};
|
|
15
|
+
readonly contextWindow: 128000;
|
|
16
|
+
readonly maxOutput: 50000;
|
|
17
|
+
readonly modalities: {
|
|
18
|
+
readonly input: readonly ["text"];
|
|
19
|
+
readonly output: readonly ["text"];
|
|
20
|
+
};
|
|
21
|
+
readonly capabilities: {
|
|
22
|
+
readonly reasoning: true;
|
|
23
|
+
readonly toolCall: true;
|
|
24
|
+
readonly attachment: false;
|
|
25
|
+
readonly structuredOutput: true;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "mercury";
|
|
29
|
+
readonly name: "Mercury";
|
|
30
|
+
readonly provider: "inception";
|
|
31
|
+
readonly family: "mercury";
|
|
32
|
+
readonly pricing: {
|
|
33
|
+
readonly input: 2.5e-7;
|
|
34
|
+
readonly output: 0.000001;
|
|
35
|
+
readonly cacheRead: 2.5e-7;
|
|
36
|
+
readonly cacheWrite: 0.000001;
|
|
37
|
+
};
|
|
38
|
+
readonly contextWindow: 128000;
|
|
39
|
+
readonly maxOutput: 16384;
|
|
40
|
+
readonly modalities: {
|
|
41
|
+
readonly input: readonly ["text"];
|
|
42
|
+
readonly output: readonly ["text"];
|
|
43
|
+
};
|
|
44
|
+
readonly capabilities: {
|
|
45
|
+
readonly reasoning: false;
|
|
46
|
+
readonly toolCall: true;
|
|
47
|
+
readonly attachment: false;
|
|
48
|
+
readonly structuredOutput: false;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
readonly id: "mercury-edit";
|
|
52
|
+
readonly name: "Mercury Edit";
|
|
53
|
+
readonly provider: "inception";
|
|
54
|
+
readonly family: "";
|
|
55
|
+
readonly pricing: {
|
|
56
|
+
readonly input: 2.5e-7;
|
|
57
|
+
readonly output: 7.5e-7;
|
|
58
|
+
readonly cacheRead: 2.5e-8;
|
|
59
|
+
};
|
|
60
|
+
readonly contextWindow: 128000;
|
|
61
|
+
readonly maxOutput: 8192;
|
|
62
|
+
readonly modalities: {
|
|
63
|
+
readonly input: readonly ["text"];
|
|
64
|
+
readonly output: readonly ["text"];
|
|
65
|
+
};
|
|
66
|
+
readonly capabilities: {
|
|
67
|
+
readonly reasoning: true;
|
|
68
|
+
readonly toolCall: false;
|
|
69
|
+
readonly attachment: false;
|
|
70
|
+
readonly structuredOutput: false;
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
readonly id: "mercury-coder";
|
|
74
|
+
readonly name: "Mercury Coder";
|
|
75
|
+
readonly provider: "inception";
|
|
76
|
+
readonly family: "mercury";
|
|
77
|
+
readonly pricing: {
|
|
78
|
+
readonly input: 2.5e-7;
|
|
79
|
+
readonly output: 0.000001;
|
|
80
|
+
readonly cacheRead: 2.5e-7;
|
|
81
|
+
readonly cacheWrite: 0.000001;
|
|
82
|
+
};
|
|
83
|
+
readonly contextWindow: 128000;
|
|
84
|
+
readonly maxOutput: 16384;
|
|
85
|
+
readonly modalities: {
|
|
86
|
+
readonly input: readonly ["text"];
|
|
87
|
+
readonly output: readonly ["text"];
|
|
88
|
+
};
|
|
89
|
+
readonly capabilities: {
|
|
90
|
+
readonly reasoning: false;
|
|
91
|
+
readonly toolCall: true;
|
|
92
|
+
readonly attachment: false;
|
|
93
|
+
readonly structuredOutput: false;
|
|
94
|
+
};
|
|
95
|
+
}];
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/providers/inception.d.ts
|
|
98
|
+
/**
|
|
99
|
+
* Known model identifiers for Inception (Mercury).
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* import type { InceptionModelId } from '@funkai/models/inception'
|
|
104
|
+
*
|
|
105
|
+
* const id: InceptionModelId = 'mercury-2'
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
type InceptionModelId = (typeof INCEPTION_MODELS)[number]["id"];
|
|
109
|
+
/**
|
|
110
|
+
* All Inception (Mercury) models in the catalog.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* import { inceptionModels } from '@funkai/models/inception'
|
|
115
|
+
*
|
|
116
|
+
* for (const m of inceptionModels) {
|
|
117
|
+
* console.log(m.id, m.pricing.input)
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
declare const inceptionModels: readonly [{
|
|
122
|
+
readonly id: "mercury-2";
|
|
123
|
+
readonly name: "Mercury 2";
|
|
124
|
+
readonly provider: "inception";
|
|
125
|
+
readonly family: "mercury";
|
|
126
|
+
readonly pricing: {
|
|
127
|
+
readonly input: 2.5e-7;
|
|
128
|
+
readonly output: 7.5e-7;
|
|
129
|
+
readonly cacheRead: 2.5e-8;
|
|
130
|
+
};
|
|
131
|
+
readonly contextWindow: 128000;
|
|
132
|
+
readonly maxOutput: 50000;
|
|
133
|
+
readonly modalities: {
|
|
134
|
+
readonly input: readonly ["text"];
|
|
135
|
+
readonly output: readonly ["text"];
|
|
136
|
+
};
|
|
137
|
+
readonly capabilities: {
|
|
138
|
+
readonly reasoning: true;
|
|
139
|
+
readonly toolCall: true;
|
|
140
|
+
readonly attachment: false;
|
|
141
|
+
readonly structuredOutput: true;
|
|
142
|
+
};
|
|
143
|
+
}, {
|
|
144
|
+
readonly id: "mercury";
|
|
145
|
+
readonly name: "Mercury";
|
|
146
|
+
readonly provider: "inception";
|
|
147
|
+
readonly family: "mercury";
|
|
148
|
+
readonly pricing: {
|
|
149
|
+
readonly input: 2.5e-7;
|
|
150
|
+
readonly output: 0.000001;
|
|
151
|
+
readonly cacheRead: 2.5e-7;
|
|
152
|
+
readonly cacheWrite: 0.000001;
|
|
153
|
+
};
|
|
154
|
+
readonly contextWindow: 128000;
|
|
155
|
+
readonly maxOutput: 16384;
|
|
156
|
+
readonly modalities: {
|
|
157
|
+
readonly input: readonly ["text"];
|
|
158
|
+
readonly output: readonly ["text"];
|
|
159
|
+
};
|
|
160
|
+
readonly capabilities: {
|
|
161
|
+
readonly reasoning: false;
|
|
162
|
+
readonly toolCall: true;
|
|
163
|
+
readonly attachment: false;
|
|
164
|
+
readonly structuredOutput: false;
|
|
165
|
+
};
|
|
166
|
+
}, {
|
|
167
|
+
readonly id: "mercury-edit";
|
|
168
|
+
readonly name: "Mercury Edit";
|
|
169
|
+
readonly provider: "inception";
|
|
170
|
+
readonly family: "";
|
|
171
|
+
readonly pricing: {
|
|
172
|
+
readonly input: 2.5e-7;
|
|
173
|
+
readonly output: 7.5e-7;
|
|
174
|
+
readonly cacheRead: 2.5e-8;
|
|
175
|
+
};
|
|
176
|
+
readonly contextWindow: 128000;
|
|
177
|
+
readonly maxOutput: 8192;
|
|
178
|
+
readonly modalities: {
|
|
179
|
+
readonly input: readonly ["text"];
|
|
180
|
+
readonly output: readonly ["text"];
|
|
181
|
+
};
|
|
182
|
+
readonly capabilities: {
|
|
183
|
+
readonly reasoning: true;
|
|
184
|
+
readonly toolCall: false;
|
|
185
|
+
readonly attachment: false;
|
|
186
|
+
readonly structuredOutput: false;
|
|
187
|
+
};
|
|
188
|
+
}, {
|
|
189
|
+
readonly id: "mercury-coder";
|
|
190
|
+
readonly name: "Mercury Coder";
|
|
191
|
+
readonly provider: "inception";
|
|
192
|
+
readonly family: "mercury";
|
|
193
|
+
readonly pricing: {
|
|
194
|
+
readonly input: 2.5e-7;
|
|
195
|
+
readonly output: 0.000001;
|
|
196
|
+
readonly cacheRead: 2.5e-7;
|
|
197
|
+
readonly cacheWrite: 0.000001;
|
|
198
|
+
};
|
|
199
|
+
readonly contextWindow: 128000;
|
|
200
|
+
readonly maxOutput: 16384;
|
|
201
|
+
readonly modalities: {
|
|
202
|
+
readonly input: readonly ["text"];
|
|
203
|
+
readonly output: readonly ["text"];
|
|
204
|
+
};
|
|
205
|
+
readonly capabilities: {
|
|
206
|
+
readonly reasoning: false;
|
|
207
|
+
readonly toolCall: true;
|
|
208
|
+
readonly attachment: false;
|
|
209
|
+
readonly structuredOutput: false;
|
|
210
|
+
};
|
|
211
|
+
}];
|
|
212
|
+
/**
|
|
213
|
+
* Look up an Inception (Mercury) model by ID.
|
|
214
|
+
*
|
|
215
|
+
* @param id - The provider-native model identifier.
|
|
216
|
+
* @returns The matching model definition, or `null`.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* import { inceptionModel } from '@funkai/models/inception'
|
|
221
|
+
*
|
|
222
|
+
* const m = inceptionModel('mercury-2')
|
|
223
|
+
* if (m) {
|
|
224
|
+
* console.log(m.pricing.input)
|
|
225
|
+
* }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
declare function inceptionModel(id: LiteralUnion<InceptionModelId, string>): ModelDefinition | null;
|
|
229
|
+
//#endregion
|
|
230
|
+
export { InceptionModelId, inceptionModel, inceptionModels };
|
|
231
|
+
//# sourceMappingURL=inception.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inception.d.mts","names":[],"sources":["../../src/catalog/providers/inception.ts","../../src/providers/inception.ts"],"mappings":";;;;cAea,gBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,gBAAA,WAA2B,gBAAA;;;;;;;;;;;;;cAc1B,eAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,cAAA,CAAe,EAAA,EAAI,YAAA,CAAa,gBAAA,YAA4B,eAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as INCEPTION_MODELS } from "../inception-CspEzqNV.mjs";
|
|
2
|
+
//#region src/providers/inception.ts
|
|
3
|
+
/**
|
|
4
|
+
* All Inception (Mercury) models in the catalog.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { inceptionModels } from '@funkai/models/inception'
|
|
9
|
+
*
|
|
10
|
+
* for (const m of inceptionModels) {
|
|
11
|
+
* console.log(m.id, m.pricing.input)
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const inceptionModels = INCEPTION_MODELS;
|
|
16
|
+
const MODEL_INDEX = new Map(INCEPTION_MODELS.map((m) => [m.id, m]));
|
|
17
|
+
/**
|
|
18
|
+
* Look up an Inception (Mercury) model by ID.
|
|
19
|
+
*
|
|
20
|
+
* @param id - The provider-native model identifier.
|
|
21
|
+
* @returns The matching model definition, or `null`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import { inceptionModel } from '@funkai/models/inception'
|
|
26
|
+
*
|
|
27
|
+
* const m = inceptionModel('mercury-2')
|
|
28
|
+
* if (m) {
|
|
29
|
+
* console.log(m.pricing.input)
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function inceptionModel(id) {
|
|
34
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { inceptionModel, inceptionModels };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=inception.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inception.mjs","names":[],"sources":["../../src/providers/inception.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 { LiteralUnion } from \"type-fest\";\n\nimport { INCEPTION_MODELS } from \"../catalog/providers/inception.js\";\nimport type { ModelDefinition } from \"../catalog/types.js\";\n\n/**\n * Known model identifiers for Inception (Mercury).\n *\n * @example\n * ```typescript\n * import type { InceptionModelId } from '@funkai/models/inception'\n *\n * const id: InceptionModelId = 'mercury-2'\n * ```\n */\nexport type InceptionModelId = (typeof INCEPTION_MODELS)[number][\"id\"];\n\n/**\n * All Inception (Mercury) models in the catalog.\n *\n * @example\n * ```typescript\n * import { inceptionModels } from '@funkai/models/inception'\n *\n * for (const m of inceptionModels) {\n * console.log(m.id, m.pricing.input)\n * }\n * ```\n */\nexport const inceptionModels = INCEPTION_MODELS;\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(INCEPTION_MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up an Inception (Mercury) model by ID.\n *\n * @param id - The provider-native model identifier.\n * @returns The matching model definition, or `null`.\n *\n * @example\n * ```typescript\n * import { inceptionModel } from '@funkai/models/inception'\n *\n * const m = inceptionModel('mercury-2')\n * if (m) {\n * console.log(m.pricing.input)\n * }\n * ```\n */\nexport function inceptionModel(id: LiteralUnion<InceptionModelId, string>): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAa,kBAAkB;AAE/B,MAAM,cAAc,IAAI,IAA6B,iBAAiB,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;AAkB5F,SAAgB,eAAe,IAAoE;AACjG,QAAO,YAAY,IAAI,GAAG,IAAI"}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
|
|
2
|
+
import { LiteralUnion } from "type-fest";
|
|
3
|
+
|
|
4
|
+
//#region src/catalog/providers/llama.d.ts
|
|
5
|
+
declare const LLAMA_MODELS: readonly [{
|
|
6
|
+
readonly id: "cerebras-llama-4-maverick-17b-128e-instruct";
|
|
7
|
+
readonly name: "Cerebras-Llama-4-Maverick-17B-128E-Instruct";
|
|
8
|
+
readonly provider: "llama";
|
|
9
|
+
readonly family: "llama";
|
|
10
|
+
readonly pricing: {
|
|
11
|
+
readonly input: 0;
|
|
12
|
+
readonly output: 0;
|
|
13
|
+
};
|
|
14
|
+
readonly contextWindow: 128000;
|
|
15
|
+
readonly maxOutput: 4096;
|
|
16
|
+
readonly modalities: {
|
|
17
|
+
readonly input: readonly ["text"];
|
|
18
|
+
readonly output: readonly ["text"];
|
|
19
|
+
};
|
|
20
|
+
readonly capabilities: {
|
|
21
|
+
readonly reasoning: false;
|
|
22
|
+
readonly toolCall: true;
|
|
23
|
+
readonly attachment: true;
|
|
24
|
+
readonly structuredOutput: false;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
readonly id: "llama-4-scout-17b-16e-instruct-fp8";
|
|
28
|
+
readonly name: "Llama-4-Scout-17B-16E-Instruct-FP8";
|
|
29
|
+
readonly provider: "llama";
|
|
30
|
+
readonly family: "llama";
|
|
31
|
+
readonly pricing: {
|
|
32
|
+
readonly input: 0;
|
|
33
|
+
readonly output: 0;
|
|
34
|
+
};
|
|
35
|
+
readonly contextWindow: 128000;
|
|
36
|
+
readonly maxOutput: 4096;
|
|
37
|
+
readonly modalities: {
|
|
38
|
+
readonly input: readonly ["text", "image"];
|
|
39
|
+
readonly output: readonly ["text"];
|
|
40
|
+
};
|
|
41
|
+
readonly capabilities: {
|
|
42
|
+
readonly reasoning: false;
|
|
43
|
+
readonly toolCall: true;
|
|
44
|
+
readonly attachment: true;
|
|
45
|
+
readonly structuredOutput: false;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
readonly id: "llama-3.3-8b-instruct";
|
|
49
|
+
readonly name: "Llama-3.3-8B-Instruct";
|
|
50
|
+
readonly provider: "llama";
|
|
51
|
+
readonly family: "llama";
|
|
52
|
+
readonly pricing: {
|
|
53
|
+
readonly input: 0;
|
|
54
|
+
readonly output: 0;
|
|
55
|
+
};
|
|
56
|
+
readonly contextWindow: 128000;
|
|
57
|
+
readonly maxOutput: 4096;
|
|
58
|
+
readonly modalities: {
|
|
59
|
+
readonly input: readonly ["text"];
|
|
60
|
+
readonly output: readonly ["text"];
|
|
61
|
+
};
|
|
62
|
+
readonly capabilities: {
|
|
63
|
+
readonly reasoning: false;
|
|
64
|
+
readonly toolCall: true;
|
|
65
|
+
readonly attachment: true;
|
|
66
|
+
readonly structuredOutput: false;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly id: "groq-llama-4-maverick-17b-128e-instruct";
|
|
70
|
+
readonly name: "Groq-Llama-4-Maverick-17B-128E-Instruct";
|
|
71
|
+
readonly provider: "llama";
|
|
72
|
+
readonly family: "llama";
|
|
73
|
+
readonly pricing: {
|
|
74
|
+
readonly input: 0;
|
|
75
|
+
readonly output: 0;
|
|
76
|
+
};
|
|
77
|
+
readonly contextWindow: 128000;
|
|
78
|
+
readonly maxOutput: 4096;
|
|
79
|
+
readonly modalities: {
|
|
80
|
+
readonly input: readonly ["text"];
|
|
81
|
+
readonly output: readonly ["text"];
|
|
82
|
+
};
|
|
83
|
+
readonly capabilities: {
|
|
84
|
+
readonly reasoning: false;
|
|
85
|
+
readonly toolCall: true;
|
|
86
|
+
readonly attachment: true;
|
|
87
|
+
readonly structuredOutput: false;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
readonly id: "llama-3.3-70b-instruct";
|
|
91
|
+
readonly name: "Llama-3.3-70B-Instruct";
|
|
92
|
+
readonly provider: "llama";
|
|
93
|
+
readonly family: "llama";
|
|
94
|
+
readonly pricing: {
|
|
95
|
+
readonly input: 0;
|
|
96
|
+
readonly output: 0;
|
|
97
|
+
};
|
|
98
|
+
readonly contextWindow: 128000;
|
|
99
|
+
readonly maxOutput: 4096;
|
|
100
|
+
readonly modalities: {
|
|
101
|
+
readonly input: readonly ["text"];
|
|
102
|
+
readonly output: readonly ["text"];
|
|
103
|
+
};
|
|
104
|
+
readonly capabilities: {
|
|
105
|
+
readonly reasoning: false;
|
|
106
|
+
readonly toolCall: true;
|
|
107
|
+
readonly attachment: true;
|
|
108
|
+
readonly structuredOutput: false;
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
readonly id: "cerebras-llama-4-scout-17b-16e-instruct";
|
|
112
|
+
readonly name: "Cerebras-Llama-4-Scout-17B-16E-Instruct";
|
|
113
|
+
readonly provider: "llama";
|
|
114
|
+
readonly family: "llama";
|
|
115
|
+
readonly pricing: {
|
|
116
|
+
readonly input: 0;
|
|
117
|
+
readonly output: 0;
|
|
118
|
+
};
|
|
119
|
+
readonly contextWindow: 128000;
|
|
120
|
+
readonly maxOutput: 4096;
|
|
121
|
+
readonly modalities: {
|
|
122
|
+
readonly input: readonly ["text"];
|
|
123
|
+
readonly output: readonly ["text"];
|
|
124
|
+
};
|
|
125
|
+
readonly capabilities: {
|
|
126
|
+
readonly reasoning: false;
|
|
127
|
+
readonly toolCall: true;
|
|
128
|
+
readonly attachment: true;
|
|
129
|
+
readonly structuredOutput: false;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "llama-4-maverick-17b-128e-instruct-fp8";
|
|
133
|
+
readonly name: "Llama-4-Maverick-17B-128E-Instruct-FP8";
|
|
134
|
+
readonly provider: "llama";
|
|
135
|
+
readonly family: "llama";
|
|
136
|
+
readonly pricing: {
|
|
137
|
+
readonly input: 0;
|
|
138
|
+
readonly output: 0;
|
|
139
|
+
};
|
|
140
|
+
readonly contextWindow: 128000;
|
|
141
|
+
readonly maxOutput: 4096;
|
|
142
|
+
readonly modalities: {
|
|
143
|
+
readonly input: readonly ["text", "image"];
|
|
144
|
+
readonly output: readonly ["text"];
|
|
145
|
+
};
|
|
146
|
+
readonly capabilities: {
|
|
147
|
+
readonly reasoning: false;
|
|
148
|
+
readonly toolCall: true;
|
|
149
|
+
readonly attachment: true;
|
|
150
|
+
readonly structuredOutput: false;
|
|
151
|
+
};
|
|
152
|
+
}];
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/providers/llama.d.ts
|
|
155
|
+
/**
|
|
156
|
+
* Known model identifiers for Meta Llama.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* import type { LlamaModelId } from '@funkai/models/llama'
|
|
161
|
+
*
|
|
162
|
+
* const id: LlamaModelId = 'cerebras-llama-4-maverick-17b-128e-instruct'
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
type LlamaModelId = (typeof LLAMA_MODELS)[number]["id"];
|
|
166
|
+
/**
|
|
167
|
+
* All Meta Llama models in the catalog.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```typescript
|
|
171
|
+
* import { llamaModels } from '@funkai/models/llama'
|
|
172
|
+
*
|
|
173
|
+
* for (const m of llamaModels) {
|
|
174
|
+
* console.log(m.id, m.pricing.input)
|
|
175
|
+
* }
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
declare const llamaModels: readonly [{
|
|
179
|
+
readonly id: "cerebras-llama-4-maverick-17b-128e-instruct";
|
|
180
|
+
readonly name: "Cerebras-Llama-4-Maverick-17B-128E-Instruct";
|
|
181
|
+
readonly provider: "llama";
|
|
182
|
+
readonly family: "llama";
|
|
183
|
+
readonly pricing: {
|
|
184
|
+
readonly input: 0;
|
|
185
|
+
readonly output: 0;
|
|
186
|
+
};
|
|
187
|
+
readonly contextWindow: 128000;
|
|
188
|
+
readonly maxOutput: 4096;
|
|
189
|
+
readonly modalities: {
|
|
190
|
+
readonly input: readonly ["text"];
|
|
191
|
+
readonly output: readonly ["text"];
|
|
192
|
+
};
|
|
193
|
+
readonly capabilities: {
|
|
194
|
+
readonly reasoning: false;
|
|
195
|
+
readonly toolCall: true;
|
|
196
|
+
readonly attachment: true;
|
|
197
|
+
readonly structuredOutput: false;
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
readonly id: "llama-4-scout-17b-16e-instruct-fp8";
|
|
201
|
+
readonly name: "Llama-4-Scout-17B-16E-Instruct-FP8";
|
|
202
|
+
readonly provider: "llama";
|
|
203
|
+
readonly family: "llama";
|
|
204
|
+
readonly pricing: {
|
|
205
|
+
readonly input: 0;
|
|
206
|
+
readonly output: 0;
|
|
207
|
+
};
|
|
208
|
+
readonly contextWindow: 128000;
|
|
209
|
+
readonly maxOutput: 4096;
|
|
210
|
+
readonly modalities: {
|
|
211
|
+
readonly input: readonly ["text", "image"];
|
|
212
|
+
readonly output: readonly ["text"];
|
|
213
|
+
};
|
|
214
|
+
readonly capabilities: {
|
|
215
|
+
readonly reasoning: false;
|
|
216
|
+
readonly toolCall: true;
|
|
217
|
+
readonly attachment: true;
|
|
218
|
+
readonly structuredOutput: false;
|
|
219
|
+
};
|
|
220
|
+
}, {
|
|
221
|
+
readonly id: "llama-3.3-8b-instruct";
|
|
222
|
+
readonly name: "Llama-3.3-8B-Instruct";
|
|
223
|
+
readonly provider: "llama";
|
|
224
|
+
readonly family: "llama";
|
|
225
|
+
readonly pricing: {
|
|
226
|
+
readonly input: 0;
|
|
227
|
+
readonly output: 0;
|
|
228
|
+
};
|
|
229
|
+
readonly contextWindow: 128000;
|
|
230
|
+
readonly maxOutput: 4096;
|
|
231
|
+
readonly modalities: {
|
|
232
|
+
readonly input: readonly ["text"];
|
|
233
|
+
readonly output: readonly ["text"];
|
|
234
|
+
};
|
|
235
|
+
readonly capabilities: {
|
|
236
|
+
readonly reasoning: false;
|
|
237
|
+
readonly toolCall: true;
|
|
238
|
+
readonly attachment: true;
|
|
239
|
+
readonly structuredOutput: false;
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
readonly id: "groq-llama-4-maverick-17b-128e-instruct";
|
|
243
|
+
readonly name: "Groq-Llama-4-Maverick-17B-128E-Instruct";
|
|
244
|
+
readonly provider: "llama";
|
|
245
|
+
readonly family: "llama";
|
|
246
|
+
readonly pricing: {
|
|
247
|
+
readonly input: 0;
|
|
248
|
+
readonly output: 0;
|
|
249
|
+
};
|
|
250
|
+
readonly contextWindow: 128000;
|
|
251
|
+
readonly maxOutput: 4096;
|
|
252
|
+
readonly modalities: {
|
|
253
|
+
readonly input: readonly ["text"];
|
|
254
|
+
readonly output: readonly ["text"];
|
|
255
|
+
};
|
|
256
|
+
readonly capabilities: {
|
|
257
|
+
readonly reasoning: false;
|
|
258
|
+
readonly toolCall: true;
|
|
259
|
+
readonly attachment: true;
|
|
260
|
+
readonly structuredOutput: false;
|
|
261
|
+
};
|
|
262
|
+
}, {
|
|
263
|
+
readonly id: "llama-3.3-70b-instruct";
|
|
264
|
+
readonly name: "Llama-3.3-70B-Instruct";
|
|
265
|
+
readonly provider: "llama";
|
|
266
|
+
readonly family: "llama";
|
|
267
|
+
readonly pricing: {
|
|
268
|
+
readonly input: 0;
|
|
269
|
+
readonly output: 0;
|
|
270
|
+
};
|
|
271
|
+
readonly contextWindow: 128000;
|
|
272
|
+
readonly maxOutput: 4096;
|
|
273
|
+
readonly modalities: {
|
|
274
|
+
readonly input: readonly ["text"];
|
|
275
|
+
readonly output: readonly ["text"];
|
|
276
|
+
};
|
|
277
|
+
readonly capabilities: {
|
|
278
|
+
readonly reasoning: false;
|
|
279
|
+
readonly toolCall: true;
|
|
280
|
+
readonly attachment: true;
|
|
281
|
+
readonly structuredOutput: false;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
readonly id: "cerebras-llama-4-scout-17b-16e-instruct";
|
|
285
|
+
readonly name: "Cerebras-Llama-4-Scout-17B-16E-Instruct";
|
|
286
|
+
readonly provider: "llama";
|
|
287
|
+
readonly family: "llama";
|
|
288
|
+
readonly pricing: {
|
|
289
|
+
readonly input: 0;
|
|
290
|
+
readonly output: 0;
|
|
291
|
+
};
|
|
292
|
+
readonly contextWindow: 128000;
|
|
293
|
+
readonly maxOutput: 4096;
|
|
294
|
+
readonly modalities: {
|
|
295
|
+
readonly input: readonly ["text"];
|
|
296
|
+
readonly output: readonly ["text"];
|
|
297
|
+
};
|
|
298
|
+
readonly capabilities: {
|
|
299
|
+
readonly reasoning: false;
|
|
300
|
+
readonly toolCall: true;
|
|
301
|
+
readonly attachment: true;
|
|
302
|
+
readonly structuredOutput: false;
|
|
303
|
+
};
|
|
304
|
+
}, {
|
|
305
|
+
readonly id: "llama-4-maverick-17b-128e-instruct-fp8";
|
|
306
|
+
readonly name: "Llama-4-Maverick-17B-128E-Instruct-FP8";
|
|
307
|
+
readonly provider: "llama";
|
|
308
|
+
readonly family: "llama";
|
|
309
|
+
readonly pricing: {
|
|
310
|
+
readonly input: 0;
|
|
311
|
+
readonly output: 0;
|
|
312
|
+
};
|
|
313
|
+
readonly contextWindow: 128000;
|
|
314
|
+
readonly maxOutput: 4096;
|
|
315
|
+
readonly modalities: {
|
|
316
|
+
readonly input: readonly ["text", "image"];
|
|
317
|
+
readonly output: readonly ["text"];
|
|
318
|
+
};
|
|
319
|
+
readonly capabilities: {
|
|
320
|
+
readonly reasoning: false;
|
|
321
|
+
readonly toolCall: true;
|
|
322
|
+
readonly attachment: true;
|
|
323
|
+
readonly structuredOutput: false;
|
|
324
|
+
};
|
|
325
|
+
}];
|
|
326
|
+
/**
|
|
327
|
+
* Look up a Meta Llama model by ID.
|
|
328
|
+
*
|
|
329
|
+
* @param id - The provider-native model identifier.
|
|
330
|
+
* @returns The matching model definition, or `null`.
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* ```typescript
|
|
334
|
+
* import { llamaModel } from '@funkai/models/llama'
|
|
335
|
+
*
|
|
336
|
+
* const m = llamaModel('cerebras-llama-4-maverick-17b-128e-instruct')
|
|
337
|
+
* if (m) {
|
|
338
|
+
* console.log(m.pricing.input)
|
|
339
|
+
* }
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
declare function llamaModel(id: LiteralUnion<LlamaModelId, string>): ModelDefinition | null;
|
|
343
|
+
//#endregion
|
|
344
|
+
export { LlamaModelId, llamaModel, llamaModels };
|
|
345
|
+
//# sourceMappingURL=llama.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llama.d.mts","names":[],"sources":["../../src/catalog/providers/llama.ts","../../src/providers/llama.ts"],"mappings":";;;;cAea,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,YAAA,WAAuB,YAAA;;;;;;;;;;;;;cActB,WAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,UAAA,CAAW,EAAA,EAAI,YAAA,CAAa,YAAA,YAAwB,eAAA"}
|