@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,555 @@
|
|
|
1
|
+
import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
|
|
2
|
+
import { LiteralUnion } from "type-fest";
|
|
3
|
+
|
|
4
|
+
//#region src/catalog/providers/cohere.d.ts
|
|
5
|
+
declare const COHERE_MODELS: readonly [{
|
|
6
|
+
readonly id: "c4ai-aya-expanse-32b";
|
|
7
|
+
readonly name: "Aya Expanse 32B";
|
|
8
|
+
readonly provider: "cohere";
|
|
9
|
+
readonly family: "";
|
|
10
|
+
readonly pricing: {
|
|
11
|
+
readonly input: 0;
|
|
12
|
+
readonly output: 0;
|
|
13
|
+
};
|
|
14
|
+
readonly contextWindow: 128000;
|
|
15
|
+
readonly maxOutput: 4000;
|
|
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: false;
|
|
24
|
+
readonly structuredOutput: false;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
readonly id: "command-a-03-2025";
|
|
28
|
+
readonly name: "Command A";
|
|
29
|
+
readonly provider: "cohere";
|
|
30
|
+
readonly family: "command-a";
|
|
31
|
+
readonly pricing: {
|
|
32
|
+
readonly input: 0.0000025;
|
|
33
|
+
readonly output: 0.00001;
|
|
34
|
+
};
|
|
35
|
+
readonly contextWindow: 256000;
|
|
36
|
+
readonly maxOutput: 8000;
|
|
37
|
+
readonly modalities: {
|
|
38
|
+
readonly input: readonly ["text"];
|
|
39
|
+
readonly output: readonly ["text"];
|
|
40
|
+
};
|
|
41
|
+
readonly capabilities: {
|
|
42
|
+
readonly reasoning: true;
|
|
43
|
+
readonly toolCall: true;
|
|
44
|
+
readonly attachment: false;
|
|
45
|
+
readonly structuredOutput: false;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
readonly id: "command-r7b-arabic-02-2025";
|
|
49
|
+
readonly name: "Command R7B Arabic";
|
|
50
|
+
readonly provider: "cohere";
|
|
51
|
+
readonly family: "command-r";
|
|
52
|
+
readonly pricing: {
|
|
53
|
+
readonly input: 3.75e-8;
|
|
54
|
+
readonly output: 1.5e-7;
|
|
55
|
+
};
|
|
56
|
+
readonly contextWindow: 128000;
|
|
57
|
+
readonly maxOutput: 4000;
|
|
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: false;
|
|
66
|
+
readonly structuredOutput: false;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly id: "command-a-translate-08-2025";
|
|
70
|
+
readonly name: "Command A Translate";
|
|
71
|
+
readonly provider: "cohere";
|
|
72
|
+
readonly family: "command-a";
|
|
73
|
+
readonly pricing: {
|
|
74
|
+
readonly input: 0.0000025;
|
|
75
|
+
readonly output: 0.00001;
|
|
76
|
+
};
|
|
77
|
+
readonly contextWindow: 8000;
|
|
78
|
+
readonly maxOutput: 8000;
|
|
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: false;
|
|
87
|
+
readonly structuredOutput: false;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
readonly id: "command-r-08-2024";
|
|
91
|
+
readonly name: "Command R";
|
|
92
|
+
readonly provider: "cohere";
|
|
93
|
+
readonly family: "command-r";
|
|
94
|
+
readonly pricing: {
|
|
95
|
+
readonly input: 1.5e-7;
|
|
96
|
+
readonly output: 6e-7;
|
|
97
|
+
};
|
|
98
|
+
readonly contextWindow: 128000;
|
|
99
|
+
readonly maxOutput: 4000;
|
|
100
|
+
readonly modalities: {
|
|
101
|
+
readonly input: readonly ["text"];
|
|
102
|
+
readonly output: readonly ["text"];
|
|
103
|
+
};
|
|
104
|
+
readonly capabilities: {
|
|
105
|
+
readonly reasoning: true;
|
|
106
|
+
readonly toolCall: true;
|
|
107
|
+
readonly attachment: false;
|
|
108
|
+
readonly structuredOutput: false;
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
readonly id: "command-r-plus-08-2024";
|
|
112
|
+
readonly name: "Command R+";
|
|
113
|
+
readonly provider: "cohere";
|
|
114
|
+
readonly family: "command-r";
|
|
115
|
+
readonly pricing: {
|
|
116
|
+
readonly input: 0.0000025;
|
|
117
|
+
readonly output: 0.00001;
|
|
118
|
+
};
|
|
119
|
+
readonly contextWindow: 128000;
|
|
120
|
+
readonly maxOutput: 4000;
|
|
121
|
+
readonly modalities: {
|
|
122
|
+
readonly input: readonly ["text"];
|
|
123
|
+
readonly output: readonly ["text"];
|
|
124
|
+
};
|
|
125
|
+
readonly capabilities: {
|
|
126
|
+
readonly reasoning: true;
|
|
127
|
+
readonly toolCall: true;
|
|
128
|
+
readonly attachment: false;
|
|
129
|
+
readonly structuredOutput: false;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "command-a-reasoning-08-2025";
|
|
133
|
+
readonly name: "Command A Reasoning";
|
|
134
|
+
readonly provider: "cohere";
|
|
135
|
+
readonly family: "command-a";
|
|
136
|
+
readonly pricing: {
|
|
137
|
+
readonly input: 0.0000025;
|
|
138
|
+
readonly output: 0.00001;
|
|
139
|
+
};
|
|
140
|
+
readonly contextWindow: 256000;
|
|
141
|
+
readonly maxOutput: 32000;
|
|
142
|
+
readonly modalities: {
|
|
143
|
+
readonly input: readonly ["text"];
|
|
144
|
+
readonly output: readonly ["text"];
|
|
145
|
+
};
|
|
146
|
+
readonly capabilities: {
|
|
147
|
+
readonly reasoning: true;
|
|
148
|
+
readonly toolCall: true;
|
|
149
|
+
readonly attachment: false;
|
|
150
|
+
readonly structuredOutput: false;
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
readonly id: "c4ai-aya-expanse-8b";
|
|
154
|
+
readonly name: "Aya Expanse 8B";
|
|
155
|
+
readonly provider: "cohere";
|
|
156
|
+
readonly family: "";
|
|
157
|
+
readonly pricing: {
|
|
158
|
+
readonly input: 0;
|
|
159
|
+
readonly output: 0;
|
|
160
|
+
};
|
|
161
|
+
readonly contextWindow: 8000;
|
|
162
|
+
readonly maxOutput: 4000;
|
|
163
|
+
readonly modalities: {
|
|
164
|
+
readonly input: readonly ["text"];
|
|
165
|
+
readonly output: readonly ["text"];
|
|
166
|
+
};
|
|
167
|
+
readonly capabilities: {
|
|
168
|
+
readonly reasoning: false;
|
|
169
|
+
readonly toolCall: true;
|
|
170
|
+
readonly attachment: false;
|
|
171
|
+
readonly structuredOutput: false;
|
|
172
|
+
};
|
|
173
|
+
}, {
|
|
174
|
+
readonly id: "c4ai-aya-vision-8b";
|
|
175
|
+
readonly name: "Aya Vision 8B";
|
|
176
|
+
readonly provider: "cohere";
|
|
177
|
+
readonly family: "";
|
|
178
|
+
readonly pricing: {
|
|
179
|
+
readonly input: 0;
|
|
180
|
+
readonly output: 0;
|
|
181
|
+
};
|
|
182
|
+
readonly contextWindow: 16000;
|
|
183
|
+
readonly maxOutput: 4000;
|
|
184
|
+
readonly modalities: {
|
|
185
|
+
readonly input: readonly ["text", "image"];
|
|
186
|
+
readonly output: readonly ["text"];
|
|
187
|
+
};
|
|
188
|
+
readonly capabilities: {
|
|
189
|
+
readonly reasoning: false;
|
|
190
|
+
readonly toolCall: true;
|
|
191
|
+
readonly attachment: true;
|
|
192
|
+
readonly structuredOutput: false;
|
|
193
|
+
};
|
|
194
|
+
}, {
|
|
195
|
+
readonly id: "c4ai-aya-vision-32b";
|
|
196
|
+
readonly name: "Aya Vision 32B";
|
|
197
|
+
readonly provider: "cohere";
|
|
198
|
+
readonly family: "";
|
|
199
|
+
readonly pricing: {
|
|
200
|
+
readonly input: 0;
|
|
201
|
+
readonly output: 0;
|
|
202
|
+
};
|
|
203
|
+
readonly contextWindow: 16000;
|
|
204
|
+
readonly maxOutput: 4000;
|
|
205
|
+
readonly modalities: {
|
|
206
|
+
readonly input: readonly ["text", "image"];
|
|
207
|
+
readonly output: readonly ["text"];
|
|
208
|
+
};
|
|
209
|
+
readonly capabilities: {
|
|
210
|
+
readonly reasoning: false;
|
|
211
|
+
readonly toolCall: true;
|
|
212
|
+
readonly attachment: true;
|
|
213
|
+
readonly structuredOutput: false;
|
|
214
|
+
};
|
|
215
|
+
}, {
|
|
216
|
+
readonly id: "command-r7b-12-2024";
|
|
217
|
+
readonly name: "Command R7B";
|
|
218
|
+
readonly provider: "cohere";
|
|
219
|
+
readonly family: "command-r";
|
|
220
|
+
readonly pricing: {
|
|
221
|
+
readonly input: 3.75e-8;
|
|
222
|
+
readonly output: 1.5e-7;
|
|
223
|
+
};
|
|
224
|
+
readonly contextWindow: 128000;
|
|
225
|
+
readonly maxOutput: 4000;
|
|
226
|
+
readonly modalities: {
|
|
227
|
+
readonly input: readonly ["text"];
|
|
228
|
+
readonly output: readonly ["text"];
|
|
229
|
+
};
|
|
230
|
+
readonly capabilities: {
|
|
231
|
+
readonly reasoning: false;
|
|
232
|
+
readonly toolCall: true;
|
|
233
|
+
readonly attachment: false;
|
|
234
|
+
readonly structuredOutput: false;
|
|
235
|
+
};
|
|
236
|
+
}, {
|
|
237
|
+
readonly id: "command-a-vision-07-2025";
|
|
238
|
+
readonly name: "Command A Vision";
|
|
239
|
+
readonly provider: "cohere";
|
|
240
|
+
readonly family: "command-a";
|
|
241
|
+
readonly pricing: {
|
|
242
|
+
readonly input: 0.0000025;
|
|
243
|
+
readonly output: 0.00001;
|
|
244
|
+
};
|
|
245
|
+
readonly contextWindow: 128000;
|
|
246
|
+
readonly maxOutput: 8000;
|
|
247
|
+
readonly modalities: {
|
|
248
|
+
readonly input: readonly ["text", "image"];
|
|
249
|
+
readonly output: readonly ["text"];
|
|
250
|
+
};
|
|
251
|
+
readonly capabilities: {
|
|
252
|
+
readonly reasoning: false;
|
|
253
|
+
readonly toolCall: false;
|
|
254
|
+
readonly attachment: false;
|
|
255
|
+
readonly structuredOutput: false;
|
|
256
|
+
};
|
|
257
|
+
}];
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/providers/cohere.d.ts
|
|
260
|
+
/**
|
|
261
|
+
* Known model identifiers for Cohere.
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```typescript
|
|
265
|
+
* import type { CohereModelId } from '@funkai/models/cohere'
|
|
266
|
+
*
|
|
267
|
+
* const id: CohereModelId = 'c4ai-aya-expanse-32b'
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
type CohereModelId = (typeof COHERE_MODELS)[number]["id"];
|
|
271
|
+
/**
|
|
272
|
+
* All Cohere models in the catalog.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```typescript
|
|
276
|
+
* import { cohereModels } from '@funkai/models/cohere'
|
|
277
|
+
*
|
|
278
|
+
* for (const m of cohereModels) {
|
|
279
|
+
* console.log(m.id, m.pricing.input)
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
declare const cohereModels: readonly [{
|
|
284
|
+
readonly id: "c4ai-aya-expanse-32b";
|
|
285
|
+
readonly name: "Aya Expanse 32B";
|
|
286
|
+
readonly provider: "cohere";
|
|
287
|
+
readonly family: "";
|
|
288
|
+
readonly pricing: {
|
|
289
|
+
readonly input: 0;
|
|
290
|
+
readonly output: 0;
|
|
291
|
+
};
|
|
292
|
+
readonly contextWindow: 128000;
|
|
293
|
+
readonly maxOutput: 4000;
|
|
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: false;
|
|
302
|
+
readonly structuredOutput: false;
|
|
303
|
+
};
|
|
304
|
+
}, {
|
|
305
|
+
readonly id: "command-a-03-2025";
|
|
306
|
+
readonly name: "Command A";
|
|
307
|
+
readonly provider: "cohere";
|
|
308
|
+
readonly family: "command-a";
|
|
309
|
+
readonly pricing: {
|
|
310
|
+
readonly input: 0.0000025;
|
|
311
|
+
readonly output: 0.00001;
|
|
312
|
+
};
|
|
313
|
+
readonly contextWindow: 256000;
|
|
314
|
+
readonly maxOutput: 8000;
|
|
315
|
+
readonly modalities: {
|
|
316
|
+
readonly input: readonly ["text"];
|
|
317
|
+
readonly output: readonly ["text"];
|
|
318
|
+
};
|
|
319
|
+
readonly capabilities: {
|
|
320
|
+
readonly reasoning: true;
|
|
321
|
+
readonly toolCall: true;
|
|
322
|
+
readonly attachment: false;
|
|
323
|
+
readonly structuredOutput: false;
|
|
324
|
+
};
|
|
325
|
+
}, {
|
|
326
|
+
readonly id: "command-r7b-arabic-02-2025";
|
|
327
|
+
readonly name: "Command R7B Arabic";
|
|
328
|
+
readonly provider: "cohere";
|
|
329
|
+
readonly family: "command-r";
|
|
330
|
+
readonly pricing: {
|
|
331
|
+
readonly input: 3.75e-8;
|
|
332
|
+
readonly output: 1.5e-7;
|
|
333
|
+
};
|
|
334
|
+
readonly contextWindow: 128000;
|
|
335
|
+
readonly maxOutput: 4000;
|
|
336
|
+
readonly modalities: {
|
|
337
|
+
readonly input: readonly ["text"];
|
|
338
|
+
readonly output: readonly ["text"];
|
|
339
|
+
};
|
|
340
|
+
readonly capabilities: {
|
|
341
|
+
readonly reasoning: false;
|
|
342
|
+
readonly toolCall: true;
|
|
343
|
+
readonly attachment: false;
|
|
344
|
+
readonly structuredOutput: false;
|
|
345
|
+
};
|
|
346
|
+
}, {
|
|
347
|
+
readonly id: "command-a-translate-08-2025";
|
|
348
|
+
readonly name: "Command A Translate";
|
|
349
|
+
readonly provider: "cohere";
|
|
350
|
+
readonly family: "command-a";
|
|
351
|
+
readonly pricing: {
|
|
352
|
+
readonly input: 0.0000025;
|
|
353
|
+
readonly output: 0.00001;
|
|
354
|
+
};
|
|
355
|
+
readonly contextWindow: 8000;
|
|
356
|
+
readonly maxOutput: 8000;
|
|
357
|
+
readonly modalities: {
|
|
358
|
+
readonly input: readonly ["text"];
|
|
359
|
+
readonly output: readonly ["text"];
|
|
360
|
+
};
|
|
361
|
+
readonly capabilities: {
|
|
362
|
+
readonly reasoning: false;
|
|
363
|
+
readonly toolCall: true;
|
|
364
|
+
readonly attachment: false;
|
|
365
|
+
readonly structuredOutput: false;
|
|
366
|
+
};
|
|
367
|
+
}, {
|
|
368
|
+
readonly id: "command-r-08-2024";
|
|
369
|
+
readonly name: "Command R";
|
|
370
|
+
readonly provider: "cohere";
|
|
371
|
+
readonly family: "command-r";
|
|
372
|
+
readonly pricing: {
|
|
373
|
+
readonly input: 1.5e-7;
|
|
374
|
+
readonly output: 6e-7;
|
|
375
|
+
};
|
|
376
|
+
readonly contextWindow: 128000;
|
|
377
|
+
readonly maxOutput: 4000;
|
|
378
|
+
readonly modalities: {
|
|
379
|
+
readonly input: readonly ["text"];
|
|
380
|
+
readonly output: readonly ["text"];
|
|
381
|
+
};
|
|
382
|
+
readonly capabilities: {
|
|
383
|
+
readonly reasoning: true;
|
|
384
|
+
readonly toolCall: true;
|
|
385
|
+
readonly attachment: false;
|
|
386
|
+
readonly structuredOutput: false;
|
|
387
|
+
};
|
|
388
|
+
}, {
|
|
389
|
+
readonly id: "command-r-plus-08-2024";
|
|
390
|
+
readonly name: "Command R+";
|
|
391
|
+
readonly provider: "cohere";
|
|
392
|
+
readonly family: "command-r";
|
|
393
|
+
readonly pricing: {
|
|
394
|
+
readonly input: 0.0000025;
|
|
395
|
+
readonly output: 0.00001;
|
|
396
|
+
};
|
|
397
|
+
readonly contextWindow: 128000;
|
|
398
|
+
readonly maxOutput: 4000;
|
|
399
|
+
readonly modalities: {
|
|
400
|
+
readonly input: readonly ["text"];
|
|
401
|
+
readonly output: readonly ["text"];
|
|
402
|
+
};
|
|
403
|
+
readonly capabilities: {
|
|
404
|
+
readonly reasoning: true;
|
|
405
|
+
readonly toolCall: true;
|
|
406
|
+
readonly attachment: false;
|
|
407
|
+
readonly structuredOutput: false;
|
|
408
|
+
};
|
|
409
|
+
}, {
|
|
410
|
+
readonly id: "command-a-reasoning-08-2025";
|
|
411
|
+
readonly name: "Command A Reasoning";
|
|
412
|
+
readonly provider: "cohere";
|
|
413
|
+
readonly family: "command-a";
|
|
414
|
+
readonly pricing: {
|
|
415
|
+
readonly input: 0.0000025;
|
|
416
|
+
readonly output: 0.00001;
|
|
417
|
+
};
|
|
418
|
+
readonly contextWindow: 256000;
|
|
419
|
+
readonly maxOutput: 32000;
|
|
420
|
+
readonly modalities: {
|
|
421
|
+
readonly input: readonly ["text"];
|
|
422
|
+
readonly output: readonly ["text"];
|
|
423
|
+
};
|
|
424
|
+
readonly capabilities: {
|
|
425
|
+
readonly reasoning: true;
|
|
426
|
+
readonly toolCall: true;
|
|
427
|
+
readonly attachment: false;
|
|
428
|
+
readonly structuredOutput: false;
|
|
429
|
+
};
|
|
430
|
+
}, {
|
|
431
|
+
readonly id: "c4ai-aya-expanse-8b";
|
|
432
|
+
readonly name: "Aya Expanse 8B";
|
|
433
|
+
readonly provider: "cohere";
|
|
434
|
+
readonly family: "";
|
|
435
|
+
readonly pricing: {
|
|
436
|
+
readonly input: 0;
|
|
437
|
+
readonly output: 0;
|
|
438
|
+
};
|
|
439
|
+
readonly contextWindow: 8000;
|
|
440
|
+
readonly maxOutput: 4000;
|
|
441
|
+
readonly modalities: {
|
|
442
|
+
readonly input: readonly ["text"];
|
|
443
|
+
readonly output: readonly ["text"];
|
|
444
|
+
};
|
|
445
|
+
readonly capabilities: {
|
|
446
|
+
readonly reasoning: false;
|
|
447
|
+
readonly toolCall: true;
|
|
448
|
+
readonly attachment: false;
|
|
449
|
+
readonly structuredOutput: false;
|
|
450
|
+
};
|
|
451
|
+
}, {
|
|
452
|
+
readonly id: "c4ai-aya-vision-8b";
|
|
453
|
+
readonly name: "Aya Vision 8B";
|
|
454
|
+
readonly provider: "cohere";
|
|
455
|
+
readonly family: "";
|
|
456
|
+
readonly pricing: {
|
|
457
|
+
readonly input: 0;
|
|
458
|
+
readonly output: 0;
|
|
459
|
+
};
|
|
460
|
+
readonly contextWindow: 16000;
|
|
461
|
+
readonly maxOutput: 4000;
|
|
462
|
+
readonly modalities: {
|
|
463
|
+
readonly input: readonly ["text", "image"];
|
|
464
|
+
readonly output: readonly ["text"];
|
|
465
|
+
};
|
|
466
|
+
readonly capabilities: {
|
|
467
|
+
readonly reasoning: false;
|
|
468
|
+
readonly toolCall: true;
|
|
469
|
+
readonly attachment: true;
|
|
470
|
+
readonly structuredOutput: false;
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
readonly id: "c4ai-aya-vision-32b";
|
|
474
|
+
readonly name: "Aya Vision 32B";
|
|
475
|
+
readonly provider: "cohere";
|
|
476
|
+
readonly family: "";
|
|
477
|
+
readonly pricing: {
|
|
478
|
+
readonly input: 0;
|
|
479
|
+
readonly output: 0;
|
|
480
|
+
};
|
|
481
|
+
readonly contextWindow: 16000;
|
|
482
|
+
readonly maxOutput: 4000;
|
|
483
|
+
readonly modalities: {
|
|
484
|
+
readonly input: readonly ["text", "image"];
|
|
485
|
+
readonly output: readonly ["text"];
|
|
486
|
+
};
|
|
487
|
+
readonly capabilities: {
|
|
488
|
+
readonly reasoning: false;
|
|
489
|
+
readonly toolCall: true;
|
|
490
|
+
readonly attachment: true;
|
|
491
|
+
readonly structuredOutput: false;
|
|
492
|
+
};
|
|
493
|
+
}, {
|
|
494
|
+
readonly id: "command-r7b-12-2024";
|
|
495
|
+
readonly name: "Command R7B";
|
|
496
|
+
readonly provider: "cohere";
|
|
497
|
+
readonly family: "command-r";
|
|
498
|
+
readonly pricing: {
|
|
499
|
+
readonly input: 3.75e-8;
|
|
500
|
+
readonly output: 1.5e-7;
|
|
501
|
+
};
|
|
502
|
+
readonly contextWindow: 128000;
|
|
503
|
+
readonly maxOutput: 4000;
|
|
504
|
+
readonly modalities: {
|
|
505
|
+
readonly input: readonly ["text"];
|
|
506
|
+
readonly output: readonly ["text"];
|
|
507
|
+
};
|
|
508
|
+
readonly capabilities: {
|
|
509
|
+
readonly reasoning: false;
|
|
510
|
+
readonly toolCall: true;
|
|
511
|
+
readonly attachment: false;
|
|
512
|
+
readonly structuredOutput: false;
|
|
513
|
+
};
|
|
514
|
+
}, {
|
|
515
|
+
readonly id: "command-a-vision-07-2025";
|
|
516
|
+
readonly name: "Command A Vision";
|
|
517
|
+
readonly provider: "cohere";
|
|
518
|
+
readonly family: "command-a";
|
|
519
|
+
readonly pricing: {
|
|
520
|
+
readonly input: 0.0000025;
|
|
521
|
+
readonly output: 0.00001;
|
|
522
|
+
};
|
|
523
|
+
readonly contextWindow: 128000;
|
|
524
|
+
readonly maxOutput: 8000;
|
|
525
|
+
readonly modalities: {
|
|
526
|
+
readonly input: readonly ["text", "image"];
|
|
527
|
+
readonly output: readonly ["text"];
|
|
528
|
+
};
|
|
529
|
+
readonly capabilities: {
|
|
530
|
+
readonly reasoning: false;
|
|
531
|
+
readonly toolCall: false;
|
|
532
|
+
readonly attachment: false;
|
|
533
|
+
readonly structuredOutput: false;
|
|
534
|
+
};
|
|
535
|
+
}];
|
|
536
|
+
/**
|
|
537
|
+
* Look up a Cohere model by ID.
|
|
538
|
+
*
|
|
539
|
+
* @param id - The provider-native model identifier.
|
|
540
|
+
* @returns The matching model definition, or `null`.
|
|
541
|
+
*
|
|
542
|
+
* @example
|
|
543
|
+
* ```typescript
|
|
544
|
+
* import { cohereModel } from '@funkai/models/cohere'
|
|
545
|
+
*
|
|
546
|
+
* const m = cohereModel('c4ai-aya-expanse-32b')
|
|
547
|
+
* if (m) {
|
|
548
|
+
* console.log(m.pricing.input)
|
|
549
|
+
* }
|
|
550
|
+
* ```
|
|
551
|
+
*/
|
|
552
|
+
declare function cohereModel(id: LiteralUnion<CohereModelId, string>): ModelDefinition | null;
|
|
553
|
+
//#endregion
|
|
554
|
+
export { CohereModelId, cohereModel, cohereModels };
|
|
555
|
+
//# sourceMappingURL=cohere.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohere.d.mts","names":[],"sources":["../../src/catalog/providers/cohere.ts","../../src/providers/cohere.ts"],"mappings":";;;;cAea,aAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;;;;;KCaY,aAAA,WAAwB,aAAA;;;;;;;;;;;;;cAcvB,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBG,WAAA,CAAY,EAAA,EAAI,YAAA,CAAa,aAAA,YAAyB,eAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as COHERE_MODELS } from "../cohere-B7TgO0hT.mjs";
|
|
2
|
+
//#region src/providers/cohere.ts
|
|
3
|
+
/**
|
|
4
|
+
* All Cohere models in the catalog.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { cohereModels } from '@funkai/models/cohere'
|
|
9
|
+
*
|
|
10
|
+
* for (const m of cohereModels) {
|
|
11
|
+
* console.log(m.id, m.pricing.input)
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const cohereModels = COHERE_MODELS;
|
|
16
|
+
const MODEL_INDEX = new Map(COHERE_MODELS.map((m) => [m.id, m]));
|
|
17
|
+
/**
|
|
18
|
+
* Look up a Cohere 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 { cohereModel } from '@funkai/models/cohere'
|
|
26
|
+
*
|
|
27
|
+
* const m = cohereModel('c4ai-aya-expanse-32b')
|
|
28
|
+
* if (m) {
|
|
29
|
+
* console.log(m.pricing.input)
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function cohereModel(id) {
|
|
34
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { cohereModel, cohereModels };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=cohere.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohere.mjs","names":[],"sources":["../../src/providers/cohere.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 { COHERE_MODELS } from \"../catalog/providers/cohere.js\";\nimport type { ModelDefinition } from \"../catalog/types.js\";\n\n/**\n * Known model identifiers for Cohere.\n *\n * @example\n * ```typescript\n * import type { CohereModelId } from '@funkai/models/cohere'\n *\n * const id: CohereModelId = 'c4ai-aya-expanse-32b'\n * ```\n */\nexport type CohereModelId = (typeof COHERE_MODELS)[number][\"id\"];\n\n/**\n * All Cohere models in the catalog.\n *\n * @example\n * ```typescript\n * import { cohereModels } from '@funkai/models/cohere'\n *\n * for (const m of cohereModels) {\n * console.log(m.id, m.pricing.input)\n * }\n * ```\n */\nexport const cohereModels = COHERE_MODELS;\n\nconst MODEL_INDEX = new Map<string, ModelDefinition>(COHERE_MODELS.map((m) => [m.id, m]));\n\n/**\n * Look up a Cohere 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 { cohereModel } from '@funkai/models/cohere'\n *\n * const m = cohereModel('c4ai-aya-expanse-32b')\n * if (m) {\n * console.log(m.pricing.input)\n * }\n * ```\n */\nexport function cohereModel(id: LiteralUnion<CohereModelId, string>): ModelDefinition | null {\n return MODEL_INDEX.get(id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAa,eAAe;AAE5B,MAAM,cAAc,IAAI,IAA6B,cAAc,KAAK,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;AAkBzF,SAAgB,YAAY,IAAiE;AAC3F,QAAO,YAAY,IAAI,GAAG,IAAI"}
|