@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":"xai.d.mts","names":[],"sources":["../../src/catalog/providers/xai.ts","../../src/providers/xai.ts"],"mappings":";;;;cAea,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,UAAA,WAAqB,UAAA;;;;;;;;;;;;;cAcpB,SAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,QAAA,CAAS,EAAA,EAAI,YAAA,CAAa,UAAA,YAAsB,eAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as XAI_MODELS } from "../xai-fSuAkQJo.mjs";
|
|
2
|
+
//#region src/providers/xai.ts
|
|
3
|
+
/**
|
|
4
|
+
* All xAI models in the catalog.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { xAIModels } from '@funkai/models/xai'
|
|
9
|
+
*
|
|
10
|
+
* for (const m of xAIModels) {
|
|
11
|
+
* console.log(m.id, m.pricing.input)
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const xAIModels = XAI_MODELS;
|
|
16
|
+
const MODEL_INDEX = new Map(XAI_MODELS.map((m) => [m.id, m]));
|
|
17
|
+
/**
|
|
18
|
+
* Look up a xAI 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 { xAIModel } from '@funkai/models/xai'
|
|
26
|
+
*
|
|
27
|
+
* const m = xAIModel('grok-2-1212')
|
|
28
|
+
* if (m) {
|
|
29
|
+
* console.log(m.pricing.input)
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function xAIModel(id) {
|
|
34
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { xAIModel, xAIModels };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=xai.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xai.mjs","names":[],"sources":["../../src/providers/xai.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 { XAI_MODELS } from \"../catalog/providers/xai.js\";\nimport type { ModelDefinition } from \"../catalog/types.js\";\n\n/**\n * Known model identifiers for xAI.\n *\n * @example\n * ```typescript\n * import type { XAIModelId } from '@funkai/models/xai'\n *\n * const id: XAIModelId = 'grok-2-1212'\n * ```\n */\nexport type XAIModelId = (typeof XAI_MODELS)[number][\"id\"];\n\n/**\n * All xAI models in the catalog.\n *\n * @example\n * ```typescript\n * import { xAIModels } from '@funkai/models/xai'\n *\n * for (const m of xAIModels) {\n * console.log(m.id, m.pricing.input)\n * }\n * ```\n */\nexport const xAIModels = XAI_MODELS;\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(XAI_MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a xAI 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 { xAIModel } from '@funkai/models/xai'\n *\n * const m = xAIModel('grok-2-1212')\n * if (m) {\n * console.log(m.pricing.input)\n * }\n * ```\n */\nexport function xAIModel(id: LiteralUnion<XAIModelId, string>): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAa,YAAY;AAEzB,MAAM,cAAc,IAAI,IAA6B,WAAW,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;AAkBtF,SAAgB,SAAS,IAA8D;AACrF,QAAO,YAAY,IAAI,GAAG,IAAI"}
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
//#region src/catalog/providers/togetherai.ts
|
|
2
|
+
const TOGETHERAI_MODELS = [
|
|
3
|
+
{
|
|
4
|
+
id: "zai-org/GLM-4.6",
|
|
5
|
+
name: "GLM 4.6",
|
|
6
|
+
provider: "togetherai",
|
|
7
|
+
family: "glm",
|
|
8
|
+
pricing: {
|
|
9
|
+
input: 6e-7,
|
|
10
|
+
output: 22e-7
|
|
11
|
+
},
|
|
12
|
+
contextWindow: 2e5,
|
|
13
|
+
maxOutput: 2e5,
|
|
14
|
+
modalities: {
|
|
15
|
+
input: ["text"],
|
|
16
|
+
output: ["text"]
|
|
17
|
+
},
|
|
18
|
+
capabilities: {
|
|
19
|
+
reasoning: false,
|
|
20
|
+
toolCall: true,
|
|
21
|
+
attachment: false,
|
|
22
|
+
structuredOutput: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "zai-org/GLM-4.7",
|
|
27
|
+
name: "GLM-4.7",
|
|
28
|
+
provider: "togetherai",
|
|
29
|
+
family: "glm",
|
|
30
|
+
pricing: {
|
|
31
|
+
input: 45e-8,
|
|
32
|
+
output: 2e-6
|
|
33
|
+
},
|
|
34
|
+
contextWindow: 2e5,
|
|
35
|
+
maxOutput: 2e5,
|
|
36
|
+
modalities: {
|
|
37
|
+
input: ["text"],
|
|
38
|
+
output: ["text"]
|
|
39
|
+
},
|
|
40
|
+
capabilities: {
|
|
41
|
+
reasoning: true,
|
|
42
|
+
toolCall: true,
|
|
43
|
+
attachment: false,
|
|
44
|
+
structuredOutput: false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "zai-org/GLM-5",
|
|
49
|
+
name: "GLM-5",
|
|
50
|
+
provider: "togetherai",
|
|
51
|
+
family: "glm",
|
|
52
|
+
pricing: {
|
|
53
|
+
input: 1e-6,
|
|
54
|
+
output: 32e-7
|
|
55
|
+
},
|
|
56
|
+
contextWindow: 202752,
|
|
57
|
+
maxOutput: 131072,
|
|
58
|
+
modalities: {
|
|
59
|
+
input: ["text"],
|
|
60
|
+
output: ["text"]
|
|
61
|
+
},
|
|
62
|
+
capabilities: {
|
|
63
|
+
reasoning: true,
|
|
64
|
+
toolCall: true,
|
|
65
|
+
attachment: false,
|
|
66
|
+
structuredOutput: true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "essentialai/Rnj-1-Instruct",
|
|
71
|
+
name: "Rnj-1 Instruct",
|
|
72
|
+
provider: "togetherai",
|
|
73
|
+
family: "rnj",
|
|
74
|
+
pricing: {
|
|
75
|
+
input: 15e-8,
|
|
76
|
+
output: 15e-8
|
|
77
|
+
},
|
|
78
|
+
contextWindow: 32768,
|
|
79
|
+
maxOutput: 32768,
|
|
80
|
+
modalities: {
|
|
81
|
+
input: ["text"],
|
|
82
|
+
output: ["text"]
|
|
83
|
+
},
|
|
84
|
+
capabilities: {
|
|
85
|
+
reasoning: false,
|
|
86
|
+
toolCall: true,
|
|
87
|
+
attachment: false,
|
|
88
|
+
structuredOutput: false
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "MiniMaxAI/MiniMax-M2.5",
|
|
93
|
+
name: "MiniMax-M2.5",
|
|
94
|
+
provider: "togetherai",
|
|
95
|
+
family: "minimax",
|
|
96
|
+
pricing: {
|
|
97
|
+
input: 3e-7,
|
|
98
|
+
output: 12e-7,
|
|
99
|
+
cacheRead: 6e-8
|
|
100
|
+
},
|
|
101
|
+
contextWindow: 204800,
|
|
102
|
+
maxOutput: 131072,
|
|
103
|
+
modalities: {
|
|
104
|
+
input: ["text"],
|
|
105
|
+
output: ["text"]
|
|
106
|
+
},
|
|
107
|
+
capabilities: {
|
|
108
|
+
reasoning: true,
|
|
109
|
+
toolCall: true,
|
|
110
|
+
attachment: false,
|
|
111
|
+
structuredOutput: false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "deepseek-ai/DeepSeek-V3-1",
|
|
116
|
+
name: "DeepSeek V3.1",
|
|
117
|
+
provider: "togetherai",
|
|
118
|
+
family: "deepseek",
|
|
119
|
+
pricing: {
|
|
120
|
+
input: 6e-7,
|
|
121
|
+
output: 17e-7
|
|
122
|
+
},
|
|
123
|
+
contextWindow: 131072,
|
|
124
|
+
maxOutput: 131072,
|
|
125
|
+
modalities: {
|
|
126
|
+
input: ["text"],
|
|
127
|
+
output: ["text"]
|
|
128
|
+
},
|
|
129
|
+
capabilities: {
|
|
130
|
+
reasoning: true,
|
|
131
|
+
toolCall: true,
|
|
132
|
+
attachment: false,
|
|
133
|
+
structuredOutput: false
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: "deepseek-ai/DeepSeek-R1",
|
|
138
|
+
name: "DeepSeek R1",
|
|
139
|
+
provider: "togetherai",
|
|
140
|
+
family: "deepseek-thinking",
|
|
141
|
+
pricing: {
|
|
142
|
+
input: 3e-6,
|
|
143
|
+
output: 7e-6
|
|
144
|
+
},
|
|
145
|
+
contextWindow: 163839,
|
|
146
|
+
maxOutput: 163839,
|
|
147
|
+
modalities: {
|
|
148
|
+
input: ["text"],
|
|
149
|
+
output: ["text"]
|
|
150
|
+
},
|
|
151
|
+
capabilities: {
|
|
152
|
+
reasoning: true,
|
|
153
|
+
toolCall: false,
|
|
154
|
+
attachment: false,
|
|
155
|
+
structuredOutput: false
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "deepseek-ai/DeepSeek-V3",
|
|
160
|
+
name: "DeepSeek V3",
|
|
161
|
+
provider: "togetherai",
|
|
162
|
+
family: "deepseek",
|
|
163
|
+
pricing: {
|
|
164
|
+
input: 125e-8,
|
|
165
|
+
output: 125e-8
|
|
166
|
+
},
|
|
167
|
+
contextWindow: 131072,
|
|
168
|
+
maxOutput: 131072,
|
|
169
|
+
modalities: {
|
|
170
|
+
input: ["text"],
|
|
171
|
+
output: ["text"]
|
|
172
|
+
},
|
|
173
|
+
capabilities: {
|
|
174
|
+
reasoning: true,
|
|
175
|
+
toolCall: true,
|
|
176
|
+
attachment: false,
|
|
177
|
+
structuredOutput: false
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "moonshotai/Kimi-K2-Instruct",
|
|
182
|
+
name: "Kimi K2 Instruct",
|
|
183
|
+
provider: "togetherai",
|
|
184
|
+
family: "kimi",
|
|
185
|
+
pricing: {
|
|
186
|
+
input: 1e-6,
|
|
187
|
+
output: 3e-6
|
|
188
|
+
},
|
|
189
|
+
contextWindow: 131072,
|
|
190
|
+
maxOutput: 131072,
|
|
191
|
+
modalities: {
|
|
192
|
+
input: ["text"],
|
|
193
|
+
output: ["text"]
|
|
194
|
+
},
|
|
195
|
+
capabilities: {
|
|
196
|
+
reasoning: false,
|
|
197
|
+
toolCall: true,
|
|
198
|
+
attachment: false,
|
|
199
|
+
structuredOutput: false
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "moonshotai/Kimi-K2.5",
|
|
204
|
+
name: "Kimi K2.5",
|
|
205
|
+
provider: "togetherai",
|
|
206
|
+
family: "kimi",
|
|
207
|
+
pricing: {
|
|
208
|
+
input: 5e-7,
|
|
209
|
+
output: 28e-7
|
|
210
|
+
},
|
|
211
|
+
contextWindow: 262144,
|
|
212
|
+
maxOutput: 262144,
|
|
213
|
+
modalities: {
|
|
214
|
+
input: ["text", "image"],
|
|
215
|
+
output: ["text"]
|
|
216
|
+
},
|
|
217
|
+
capabilities: {
|
|
218
|
+
reasoning: true,
|
|
219
|
+
toolCall: true,
|
|
220
|
+
attachment: false,
|
|
221
|
+
structuredOutput: false
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
226
|
+
name: "Llama 3.3 70B",
|
|
227
|
+
provider: "togetherai",
|
|
228
|
+
family: "llama",
|
|
229
|
+
pricing: {
|
|
230
|
+
input: 88e-8,
|
|
231
|
+
output: 88e-8
|
|
232
|
+
},
|
|
233
|
+
contextWindow: 131072,
|
|
234
|
+
maxOutput: 131072,
|
|
235
|
+
modalities: {
|
|
236
|
+
input: ["text"],
|
|
237
|
+
output: ["text"]
|
|
238
|
+
},
|
|
239
|
+
capabilities: {
|
|
240
|
+
reasoning: false,
|
|
241
|
+
toolCall: true,
|
|
242
|
+
attachment: false,
|
|
243
|
+
structuredOutput: false
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "Qwen/Qwen3-Next-80B-A3B-Instruct",
|
|
248
|
+
name: "Qwen3-Next-80B-A3B-Instruct",
|
|
249
|
+
provider: "togetherai",
|
|
250
|
+
family: "qwen",
|
|
251
|
+
pricing: {
|
|
252
|
+
input: 15e-8,
|
|
253
|
+
output: 15e-7
|
|
254
|
+
},
|
|
255
|
+
contextWindow: 262144,
|
|
256
|
+
maxOutput: 262144,
|
|
257
|
+
modalities: {
|
|
258
|
+
input: ["text"],
|
|
259
|
+
output: ["text"]
|
|
260
|
+
},
|
|
261
|
+
capabilities: {
|
|
262
|
+
reasoning: false,
|
|
263
|
+
toolCall: true,
|
|
264
|
+
attachment: false,
|
|
265
|
+
structuredOutput: false
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: "Qwen/Qwen3-235B-A22B-Instruct-2507-tput",
|
|
270
|
+
name: "Qwen3 235B A22B Instruct 2507 FP8",
|
|
271
|
+
provider: "togetherai",
|
|
272
|
+
family: "qwen",
|
|
273
|
+
pricing: {
|
|
274
|
+
input: 2e-7,
|
|
275
|
+
output: 6e-7
|
|
276
|
+
},
|
|
277
|
+
contextWindow: 262144,
|
|
278
|
+
maxOutput: 262144,
|
|
279
|
+
modalities: {
|
|
280
|
+
input: ["text"],
|
|
281
|
+
output: ["text"]
|
|
282
|
+
},
|
|
283
|
+
capabilities: {
|
|
284
|
+
reasoning: true,
|
|
285
|
+
toolCall: true,
|
|
286
|
+
attachment: false,
|
|
287
|
+
structuredOutput: false
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
id: "Qwen/Qwen3.5-397B-A17B",
|
|
292
|
+
name: "Qwen3.5 397B A17B",
|
|
293
|
+
provider: "togetherai",
|
|
294
|
+
family: "qwen",
|
|
295
|
+
pricing: {
|
|
296
|
+
input: 6e-7,
|
|
297
|
+
output: 36e-7
|
|
298
|
+
},
|
|
299
|
+
contextWindow: 262144,
|
|
300
|
+
maxOutput: 13e4,
|
|
301
|
+
modalities: {
|
|
302
|
+
input: ["text", "image"],
|
|
303
|
+
output: ["text"]
|
|
304
|
+
},
|
|
305
|
+
capabilities: {
|
|
306
|
+
reasoning: true,
|
|
307
|
+
toolCall: true,
|
|
308
|
+
attachment: false,
|
|
309
|
+
structuredOutput: false
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
id: "Qwen/Qwen3-Coder-Next-FP8",
|
|
314
|
+
name: "Qwen3 Coder Next FP8",
|
|
315
|
+
provider: "togetherai",
|
|
316
|
+
family: "qwen",
|
|
317
|
+
pricing: {
|
|
318
|
+
input: 5e-7,
|
|
319
|
+
output: 12e-7
|
|
320
|
+
},
|
|
321
|
+
contextWindow: 262144,
|
|
322
|
+
maxOutput: 262144,
|
|
323
|
+
modalities: {
|
|
324
|
+
input: ["text"],
|
|
325
|
+
output: ["text"]
|
|
326
|
+
},
|
|
327
|
+
capabilities: {
|
|
328
|
+
reasoning: true,
|
|
329
|
+
toolCall: true,
|
|
330
|
+
attachment: false,
|
|
331
|
+
structuredOutput: false
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",
|
|
336
|
+
name: "Qwen3 Coder 480B A35B Instruct",
|
|
337
|
+
provider: "togetherai",
|
|
338
|
+
family: "qwen",
|
|
339
|
+
pricing: {
|
|
340
|
+
input: 2e-6,
|
|
341
|
+
output: 2e-6
|
|
342
|
+
},
|
|
343
|
+
contextWindow: 262144,
|
|
344
|
+
maxOutput: 262144,
|
|
345
|
+
modalities: {
|
|
346
|
+
input: ["text"],
|
|
347
|
+
output: ["text"]
|
|
348
|
+
},
|
|
349
|
+
capabilities: {
|
|
350
|
+
reasoning: false,
|
|
351
|
+
toolCall: true,
|
|
352
|
+
attachment: false,
|
|
353
|
+
structuredOutput: false
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
id: "openai/gpt-oss-120b",
|
|
358
|
+
name: "GPT OSS 120B",
|
|
359
|
+
provider: "togetherai",
|
|
360
|
+
family: "gpt-oss",
|
|
361
|
+
pricing: {
|
|
362
|
+
input: 15e-8,
|
|
363
|
+
output: 6e-7
|
|
364
|
+
},
|
|
365
|
+
contextWindow: 131072,
|
|
366
|
+
maxOutput: 131072,
|
|
367
|
+
modalities: {
|
|
368
|
+
input: ["text"],
|
|
369
|
+
output: ["text"]
|
|
370
|
+
},
|
|
371
|
+
capabilities: {
|
|
372
|
+
reasoning: true,
|
|
373
|
+
toolCall: true,
|
|
374
|
+
attachment: false,
|
|
375
|
+
structuredOutput: false
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
];
|
|
379
|
+
//#endregion
|
|
380
|
+
export { TOGETHERAI_MODELS as t };
|
|
381
|
+
|
|
382
|
+
//# sourceMappingURL=togetherai-BvcxUfPE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"togetherai-BvcxUfPE.mjs","names":[],"sources":["../src/catalog/providers/togetherai.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 TOGETHERAI_MODELS = [\n {\n id: \"zai-org/GLM-4.6\",\n name: \"GLM 4.6\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 6e-7, output: 0.0000022 },\n contextWindow: 200000,\n maxOutput: 200000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-4.7\",\n name: \"GLM-4.7\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 4.5e-7, output: 0.000002 },\n contextWindow: 200000,\n maxOutput: 200000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-5\",\n name: \"GLM-5\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 0.000001, output: 0.0000032 },\n contextWindow: 202752,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },\n },\n {\n id: \"essentialai/Rnj-1-Instruct\",\n name: \"Rnj-1 Instruct\",\n provider: \"togetherai\",\n family: \"rnj\",\n pricing: { input: 1.5e-7, output: 1.5e-7 },\n contextWindow: 32768,\n maxOutput: 32768,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"MiniMaxAI/MiniMax-M2.5\",\n name: \"MiniMax-M2.5\",\n provider: \"togetherai\",\n family: \"minimax\",\n pricing: { input: 3e-7, output: 0.0000012, cacheRead: 6e-8 },\n contextWindow: 204800,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3-1\",\n name: \"DeepSeek V3.1\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 6e-7, output: 0.0000017 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-R1\",\n name: \"DeepSeek R1\",\n provider: \"togetherai\",\n family: \"deepseek-thinking\",\n pricing: { input: 0.000003, output: 0.000007 },\n contextWindow: 163839,\n maxOutput: 163839,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3\",\n name: \"DeepSeek V3\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 0.00000125, output: 0.00000125 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2-Instruct\",\n name: \"Kimi K2 Instruct\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 0.000001, output: 0.000003 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2.5\",\n name: \"Kimi K2.5\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 5e-7, output: 0.0000028 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"meta-llama/Llama-3.3-70B-Instruct-Turbo\",\n name: \"Llama 3.3 70B\",\n provider: \"togetherai\",\n family: \"llama\",\n pricing: { input: 8.8e-7, output: 8.8e-7 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Next-80B-A3B-Instruct\",\n name: \"Qwen3-Next-80B-A3B-Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 1.5e-7, output: 0.0000015 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-235B-A22B-Instruct-2507-tput\",\n name: \"Qwen3 235B A22B Instruct 2507 FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 2e-7, output: 6e-7 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3.5-397B-A17B\",\n name: \"Qwen3.5 397B A17B\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 6e-7, output: 0.0000036 },\n contextWindow: 262144,\n maxOutput: 130000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-Next-FP8\",\n name: \"Qwen3 Coder Next FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 5e-7, output: 0.0000012 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8\",\n name: \"Qwen3 Coder 480B A35B Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 0.000002, output: 0.000002 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"openai/gpt-oss-120b\",\n name: \"GPT OSS 120B\",\n provider: \"togetherai\",\n family: \"gpt-oss\",\n pricing: { input: 1.5e-7, output: 6e-7 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,oBAAoB;CAC/B;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAM,QAAQ;GAAW;EAC3C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ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WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU;EAC9C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAQ,QAAQ;GAAM;EACxC,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC9F;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/catalog/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Per-model pricing in USD per token.
|
|
4
|
+
*
|
|
5
|
+
* All rates are per-token. The generation script converts models.dev
|
|
6
|
+
* per-million-token rates at code-gen time so runtime {@link calculateCost}
|
|
7
|
+
* can multiply directly.
|
|
8
|
+
*/
|
|
9
|
+
interface ModelPricing {
|
|
10
|
+
/** Cost per input token. */
|
|
11
|
+
readonly input: number;
|
|
12
|
+
/** Cost per output token. */
|
|
13
|
+
readonly output: number;
|
|
14
|
+
/** Cost per cached input token (read). */
|
|
15
|
+
readonly cacheRead?: number;
|
|
16
|
+
/** Cost per cached input token (write). */
|
|
17
|
+
readonly cacheWrite?: number;
|
|
18
|
+
/** Cost per reasoning token. */
|
|
19
|
+
readonly reasoning?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Model input/output modality descriptors.
|
|
23
|
+
*
|
|
24
|
+
* Values come directly from the models.dev API (e.g. `"text"`,
|
|
25
|
+
* `"image"`, `"audio"`, `"video"`, `"pdf"`).
|
|
26
|
+
*/
|
|
27
|
+
interface ModelModalities {
|
|
28
|
+
/** Accepted input modalities. */
|
|
29
|
+
readonly input: readonly string[];
|
|
30
|
+
/** Produced output modalities. */
|
|
31
|
+
readonly output: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Boolean capability flags for a model.
|
|
35
|
+
*/
|
|
36
|
+
interface ModelCapabilities {
|
|
37
|
+
/** Supports chain-of-thought / extended thinking. */
|
|
38
|
+
readonly reasoning: boolean;
|
|
39
|
+
/** Supports tool (function) calling. */
|
|
40
|
+
readonly toolCall: boolean;
|
|
41
|
+
/** Supports file/image attachments. */
|
|
42
|
+
readonly attachment: boolean;
|
|
43
|
+
/** Supports structured (JSON) output. */
|
|
44
|
+
readonly structuredOutput: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Model definition with metadata, pricing, and capabilities.
|
|
48
|
+
*/
|
|
49
|
+
interface ModelDefinition {
|
|
50
|
+
/** Provider-native model identifier (e.g. `"gpt-4.1"`, `"claude-sonnet-4"`). */
|
|
51
|
+
readonly id: string;
|
|
52
|
+
/** Human-readable display name (e.g. `"GPT-4.1"`). */
|
|
53
|
+
readonly name: string;
|
|
54
|
+
/** Provider slug matching the key in `providers.json` (e.g. `"openai"`). */
|
|
55
|
+
readonly provider: string;
|
|
56
|
+
/** Model family (e.g. `"gpt"`, `"claude-sonnet"`). */
|
|
57
|
+
readonly family: string;
|
|
58
|
+
/** Token pricing rates (per-token, converted from per-million at generation time). */
|
|
59
|
+
readonly pricing: ModelPricing;
|
|
60
|
+
/** Maximum context window size in tokens. */
|
|
61
|
+
readonly contextWindow: number;
|
|
62
|
+
/** Maximum output tokens. */
|
|
63
|
+
readonly maxOutput: number;
|
|
64
|
+
/** Supported input/output modalities. */
|
|
65
|
+
readonly modalities: ModelModalities;
|
|
66
|
+
/** Model capability flags. */
|
|
67
|
+
readonly capabilities: ModelCapabilities;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { ModelPricing as i, ModelDefinition as n, ModelModalities as r, ModelCapabilities as t };
|
|
71
|
+
//# sourceMappingURL=types-DjdaZckF.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DjdaZckF.d.mts","names":[],"sources":["../src/catalog/types.ts"],"mappings":";;AAOA;;;;;;UAAiB,YAAA;EAWN;EAAA,SATA,KAAA;EAYS;EAAA,SATT,MAAA;EAkBM;EAAA,SAfN,SAAA;;WAGA,UAAA;EAiBM;EAAA,SAdN,SAAA;AAAA;;;;;;;UASM,eAAA;EAsBU;EAAA,SApBhB,KAAA;EA0BqB;EAAA,SAvBrB,MAAA;AAAA;;;;UAMM,iBAAA;EAmBN;EAAA,SAjBA,SAAA;EAuBA;EAAA,SApBA,QAAA;EA0BA;EAAA,SAvBA,UAAA;EA0BA;EAAA,SAvBA,gBAAA;AAAA;;;;UAMM,eAAA;EA0ByB;EAAA,SAxB/B,EAAA;;WAGA,IAAA;;WAGA,QAAA;;WAGA,MAAA;;WAGA,OAAA,EAAS,YAAA;;WAGT,aAAA;;WAGA,SAAA;;WAGA,UAAA,EAAY,eAAA;;WAGZ,YAAA,EAAc,iBAAA;AAAA"}
|