@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,765 @@
|
|
|
1
|
+
import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
|
|
2
|
+
import { LiteralUnion } from "type-fest";
|
|
3
|
+
|
|
4
|
+
//#region src/catalog/providers/groq.d.ts
|
|
5
|
+
declare const GROQ_MODELS: readonly [{
|
|
6
|
+
readonly id: "llama3-70b-8192";
|
|
7
|
+
readonly name: "Llama 3 70B";
|
|
8
|
+
readonly provider: "groq";
|
|
9
|
+
readonly family: "llama";
|
|
10
|
+
readonly pricing: {
|
|
11
|
+
readonly input: 5.9e-7;
|
|
12
|
+
readonly output: 7.9e-7;
|
|
13
|
+
};
|
|
14
|
+
readonly contextWindow: 8192;
|
|
15
|
+
readonly maxOutput: 8192;
|
|
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: "qwen-qwq-32b";
|
|
28
|
+
readonly name: "Qwen QwQ 32B";
|
|
29
|
+
readonly provider: "groq";
|
|
30
|
+
readonly family: "qwen";
|
|
31
|
+
readonly pricing: {
|
|
32
|
+
readonly input: 2.9e-7;
|
|
33
|
+
readonly output: 3.9e-7;
|
|
34
|
+
};
|
|
35
|
+
readonly contextWindow: 131072;
|
|
36
|
+
readonly maxOutput: 16384;
|
|
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: "llama-3.1-8b-instant";
|
|
49
|
+
readonly name: "Llama 3.1 8B Instant";
|
|
50
|
+
readonly provider: "groq";
|
|
51
|
+
readonly family: "llama";
|
|
52
|
+
readonly pricing: {
|
|
53
|
+
readonly input: 5e-8;
|
|
54
|
+
readonly output: 8e-8;
|
|
55
|
+
};
|
|
56
|
+
readonly contextWindow: 131072;
|
|
57
|
+
readonly maxOutput: 131072;
|
|
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: "llama-guard-3-8b";
|
|
70
|
+
readonly name: "Llama Guard 3 8B";
|
|
71
|
+
readonly provider: "groq";
|
|
72
|
+
readonly family: "llama";
|
|
73
|
+
readonly pricing: {
|
|
74
|
+
readonly input: 2e-7;
|
|
75
|
+
readonly output: 2e-7;
|
|
76
|
+
};
|
|
77
|
+
readonly contextWindow: 8192;
|
|
78
|
+
readonly maxOutput: 8192;
|
|
79
|
+
readonly modalities: {
|
|
80
|
+
readonly input: readonly ["text"];
|
|
81
|
+
readonly output: readonly ["text"];
|
|
82
|
+
};
|
|
83
|
+
readonly capabilities: {
|
|
84
|
+
readonly reasoning: false;
|
|
85
|
+
readonly toolCall: false;
|
|
86
|
+
readonly attachment: false;
|
|
87
|
+
readonly structuredOutput: false;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
readonly id: "deepseek-r1-distill-llama-70b";
|
|
91
|
+
readonly name: "DeepSeek R1 Distill Llama 70B";
|
|
92
|
+
readonly provider: "groq";
|
|
93
|
+
readonly family: "deepseek-thinking";
|
|
94
|
+
readonly pricing: {
|
|
95
|
+
readonly input: 7.5e-7;
|
|
96
|
+
readonly output: 9.9e-7;
|
|
97
|
+
};
|
|
98
|
+
readonly contextWindow: 131072;
|
|
99
|
+
readonly maxOutput: 8192;
|
|
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: "llama3-8b-8192";
|
|
112
|
+
readonly name: "Llama 3 8B";
|
|
113
|
+
readonly provider: "groq";
|
|
114
|
+
readonly family: "llama";
|
|
115
|
+
readonly pricing: {
|
|
116
|
+
readonly input: 5e-8;
|
|
117
|
+
readonly output: 8e-8;
|
|
118
|
+
};
|
|
119
|
+
readonly contextWindow: 8192;
|
|
120
|
+
readonly maxOutput: 8192;
|
|
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: false;
|
|
129
|
+
readonly structuredOutput: false;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "mistral-saba-24b";
|
|
133
|
+
readonly name: "Mistral Saba 24B";
|
|
134
|
+
readonly provider: "groq";
|
|
135
|
+
readonly family: "mistral";
|
|
136
|
+
readonly pricing: {
|
|
137
|
+
readonly input: 7.9e-7;
|
|
138
|
+
readonly output: 7.9e-7;
|
|
139
|
+
};
|
|
140
|
+
readonly contextWindow: 32768;
|
|
141
|
+
readonly maxOutput: 32768;
|
|
142
|
+
readonly modalities: {
|
|
143
|
+
readonly input: readonly ["text"];
|
|
144
|
+
readonly output: readonly ["text"];
|
|
145
|
+
};
|
|
146
|
+
readonly capabilities: {
|
|
147
|
+
readonly reasoning: false;
|
|
148
|
+
readonly toolCall: true;
|
|
149
|
+
readonly attachment: false;
|
|
150
|
+
readonly structuredOutput: false;
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
readonly id: "llama-3.3-70b-versatile";
|
|
154
|
+
readonly name: "Llama 3.3 70B Versatile";
|
|
155
|
+
readonly provider: "groq";
|
|
156
|
+
readonly family: "llama";
|
|
157
|
+
readonly pricing: {
|
|
158
|
+
readonly input: 5.9e-7;
|
|
159
|
+
readonly output: 7.9e-7;
|
|
160
|
+
};
|
|
161
|
+
readonly contextWindow: 131072;
|
|
162
|
+
readonly maxOutput: 32768;
|
|
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: "gemma2-9b-it";
|
|
175
|
+
readonly name: "Gemma 2 9B";
|
|
176
|
+
readonly provider: "groq";
|
|
177
|
+
readonly family: "gemma";
|
|
178
|
+
readonly pricing: {
|
|
179
|
+
readonly input: 2e-7;
|
|
180
|
+
readonly output: 2e-7;
|
|
181
|
+
};
|
|
182
|
+
readonly contextWindow: 8192;
|
|
183
|
+
readonly maxOutput: 8192;
|
|
184
|
+
readonly modalities: {
|
|
185
|
+
readonly input: readonly ["text"];
|
|
186
|
+
readonly output: readonly ["text"];
|
|
187
|
+
};
|
|
188
|
+
readonly capabilities: {
|
|
189
|
+
readonly reasoning: false;
|
|
190
|
+
readonly toolCall: true;
|
|
191
|
+
readonly attachment: false;
|
|
192
|
+
readonly structuredOutput: false;
|
|
193
|
+
};
|
|
194
|
+
}, {
|
|
195
|
+
readonly id: "moonshotai/kimi-k2-instruct";
|
|
196
|
+
readonly name: "Kimi K2 Instruct";
|
|
197
|
+
readonly provider: "groq";
|
|
198
|
+
readonly family: "kimi";
|
|
199
|
+
readonly pricing: {
|
|
200
|
+
readonly input: 0.000001;
|
|
201
|
+
readonly output: 0.000003;
|
|
202
|
+
};
|
|
203
|
+
readonly contextWindow: 131072;
|
|
204
|
+
readonly maxOutput: 16384;
|
|
205
|
+
readonly modalities: {
|
|
206
|
+
readonly input: readonly ["text"];
|
|
207
|
+
readonly output: readonly ["text"];
|
|
208
|
+
};
|
|
209
|
+
readonly capabilities: {
|
|
210
|
+
readonly reasoning: false;
|
|
211
|
+
readonly toolCall: true;
|
|
212
|
+
readonly attachment: false;
|
|
213
|
+
readonly structuredOutput: false;
|
|
214
|
+
};
|
|
215
|
+
}, {
|
|
216
|
+
readonly id: "moonshotai/kimi-k2-instruct-0905";
|
|
217
|
+
readonly name: "Kimi K2 Instruct 0905";
|
|
218
|
+
readonly provider: "groq";
|
|
219
|
+
readonly family: "kimi";
|
|
220
|
+
readonly pricing: {
|
|
221
|
+
readonly input: 0.000001;
|
|
222
|
+
readonly output: 0.000003;
|
|
223
|
+
};
|
|
224
|
+
readonly contextWindow: 262144;
|
|
225
|
+
readonly maxOutput: 16384;
|
|
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: true;
|
|
235
|
+
};
|
|
236
|
+
}, {
|
|
237
|
+
readonly id: "qwen/qwen3-32b";
|
|
238
|
+
readonly name: "Qwen3 32B";
|
|
239
|
+
readonly provider: "groq";
|
|
240
|
+
readonly family: "qwen";
|
|
241
|
+
readonly pricing: {
|
|
242
|
+
readonly input: 2.9e-7;
|
|
243
|
+
readonly output: 5.9e-7;
|
|
244
|
+
};
|
|
245
|
+
readonly contextWindow: 131072;
|
|
246
|
+
readonly maxOutput: 16384;
|
|
247
|
+
readonly modalities: {
|
|
248
|
+
readonly input: readonly ["text"];
|
|
249
|
+
readonly output: readonly ["text"];
|
|
250
|
+
};
|
|
251
|
+
readonly capabilities: {
|
|
252
|
+
readonly reasoning: true;
|
|
253
|
+
readonly toolCall: true;
|
|
254
|
+
readonly attachment: false;
|
|
255
|
+
readonly structuredOutput: false;
|
|
256
|
+
};
|
|
257
|
+
}, {
|
|
258
|
+
readonly id: "meta-llama/llama-4-scout-17b-16e-instruct";
|
|
259
|
+
readonly name: "Llama 4 Scout 17B";
|
|
260
|
+
readonly provider: "groq";
|
|
261
|
+
readonly family: "llama";
|
|
262
|
+
readonly pricing: {
|
|
263
|
+
readonly input: 1.1e-7;
|
|
264
|
+
readonly output: 3.4e-7;
|
|
265
|
+
};
|
|
266
|
+
readonly contextWindow: 131072;
|
|
267
|
+
readonly maxOutput: 8192;
|
|
268
|
+
readonly modalities: {
|
|
269
|
+
readonly input: readonly ["text", "image"];
|
|
270
|
+
readonly output: readonly ["text"];
|
|
271
|
+
};
|
|
272
|
+
readonly capabilities: {
|
|
273
|
+
readonly reasoning: false;
|
|
274
|
+
readonly toolCall: true;
|
|
275
|
+
readonly attachment: false;
|
|
276
|
+
readonly structuredOutput: true;
|
|
277
|
+
};
|
|
278
|
+
}, {
|
|
279
|
+
readonly id: "meta-llama/llama-guard-4-12b";
|
|
280
|
+
readonly name: "Llama Guard 4 12B";
|
|
281
|
+
readonly provider: "groq";
|
|
282
|
+
readonly family: "llama";
|
|
283
|
+
readonly pricing: {
|
|
284
|
+
readonly input: 2e-7;
|
|
285
|
+
readonly output: 2e-7;
|
|
286
|
+
};
|
|
287
|
+
readonly contextWindow: 131072;
|
|
288
|
+
readonly maxOutput: 1024;
|
|
289
|
+
readonly modalities: {
|
|
290
|
+
readonly input: readonly ["text", "image"];
|
|
291
|
+
readonly output: readonly ["text"];
|
|
292
|
+
};
|
|
293
|
+
readonly capabilities: {
|
|
294
|
+
readonly reasoning: false;
|
|
295
|
+
readonly toolCall: false;
|
|
296
|
+
readonly attachment: false;
|
|
297
|
+
readonly structuredOutput: false;
|
|
298
|
+
};
|
|
299
|
+
}, {
|
|
300
|
+
readonly id: "meta-llama/llama-4-maverick-17b-128e-instruct";
|
|
301
|
+
readonly name: "Llama 4 Maverick 17B";
|
|
302
|
+
readonly provider: "groq";
|
|
303
|
+
readonly family: "llama";
|
|
304
|
+
readonly pricing: {
|
|
305
|
+
readonly input: 2e-7;
|
|
306
|
+
readonly output: 6e-7;
|
|
307
|
+
};
|
|
308
|
+
readonly contextWindow: 131072;
|
|
309
|
+
readonly maxOutput: 8192;
|
|
310
|
+
readonly modalities: {
|
|
311
|
+
readonly input: readonly ["text", "image"];
|
|
312
|
+
readonly output: readonly ["text"];
|
|
313
|
+
};
|
|
314
|
+
readonly capabilities: {
|
|
315
|
+
readonly reasoning: false;
|
|
316
|
+
readonly toolCall: true;
|
|
317
|
+
readonly attachment: false;
|
|
318
|
+
readonly structuredOutput: true;
|
|
319
|
+
};
|
|
320
|
+
}, {
|
|
321
|
+
readonly id: "openai/gpt-oss-120b";
|
|
322
|
+
readonly name: "GPT OSS 120B";
|
|
323
|
+
readonly provider: "groq";
|
|
324
|
+
readonly family: "gpt-oss";
|
|
325
|
+
readonly pricing: {
|
|
326
|
+
readonly input: 1.5e-7;
|
|
327
|
+
readonly output: 6e-7;
|
|
328
|
+
};
|
|
329
|
+
readonly contextWindow: 131072;
|
|
330
|
+
readonly maxOutput: 65536;
|
|
331
|
+
readonly modalities: {
|
|
332
|
+
readonly input: readonly ["text"];
|
|
333
|
+
readonly output: readonly ["text"];
|
|
334
|
+
};
|
|
335
|
+
readonly capabilities: {
|
|
336
|
+
readonly reasoning: true;
|
|
337
|
+
readonly toolCall: true;
|
|
338
|
+
readonly attachment: false;
|
|
339
|
+
readonly structuredOutput: true;
|
|
340
|
+
};
|
|
341
|
+
}, {
|
|
342
|
+
readonly id: "openai/gpt-oss-20b";
|
|
343
|
+
readonly name: "GPT OSS 20B";
|
|
344
|
+
readonly provider: "groq";
|
|
345
|
+
readonly family: "gpt-oss";
|
|
346
|
+
readonly pricing: {
|
|
347
|
+
readonly input: 7.5e-8;
|
|
348
|
+
readonly output: 3e-7;
|
|
349
|
+
};
|
|
350
|
+
readonly contextWindow: 131072;
|
|
351
|
+
readonly maxOutput: 65536;
|
|
352
|
+
readonly modalities: {
|
|
353
|
+
readonly input: readonly ["text"];
|
|
354
|
+
readonly output: readonly ["text"];
|
|
355
|
+
};
|
|
356
|
+
readonly capabilities: {
|
|
357
|
+
readonly reasoning: true;
|
|
358
|
+
readonly toolCall: true;
|
|
359
|
+
readonly attachment: false;
|
|
360
|
+
readonly structuredOutput: true;
|
|
361
|
+
};
|
|
362
|
+
}];
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/providers/groq.d.ts
|
|
365
|
+
/**
|
|
366
|
+
* Known model identifiers for Groq.
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* ```typescript
|
|
370
|
+
* import type { GroqModelId } from '@funkai/models/groq'
|
|
371
|
+
*
|
|
372
|
+
* const id: GroqModelId = 'llama3-70b-8192'
|
|
373
|
+
* ```
|
|
374
|
+
*/
|
|
375
|
+
type GroqModelId = (typeof GROQ_MODELS)[number]["id"];
|
|
376
|
+
/**
|
|
377
|
+
* All Groq models in the catalog.
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* ```typescript
|
|
381
|
+
* import { groqModels } from '@funkai/models/groq'
|
|
382
|
+
*
|
|
383
|
+
* for (const m of groqModels) {
|
|
384
|
+
* console.log(m.id, m.pricing.input)
|
|
385
|
+
* }
|
|
386
|
+
* ```
|
|
387
|
+
*/
|
|
388
|
+
declare const groqModels: readonly [{
|
|
389
|
+
readonly id: "llama3-70b-8192";
|
|
390
|
+
readonly name: "Llama 3 70B";
|
|
391
|
+
readonly provider: "groq";
|
|
392
|
+
readonly family: "llama";
|
|
393
|
+
readonly pricing: {
|
|
394
|
+
readonly input: 5.9e-7;
|
|
395
|
+
readonly output: 7.9e-7;
|
|
396
|
+
};
|
|
397
|
+
readonly contextWindow: 8192;
|
|
398
|
+
readonly maxOutput: 8192;
|
|
399
|
+
readonly modalities: {
|
|
400
|
+
readonly input: readonly ["text"];
|
|
401
|
+
readonly output: readonly ["text"];
|
|
402
|
+
};
|
|
403
|
+
readonly capabilities: {
|
|
404
|
+
readonly reasoning: false;
|
|
405
|
+
readonly toolCall: true;
|
|
406
|
+
readonly attachment: false;
|
|
407
|
+
readonly structuredOutput: false;
|
|
408
|
+
};
|
|
409
|
+
}, {
|
|
410
|
+
readonly id: "qwen-qwq-32b";
|
|
411
|
+
readonly name: "Qwen QwQ 32B";
|
|
412
|
+
readonly provider: "groq";
|
|
413
|
+
readonly family: "qwen";
|
|
414
|
+
readonly pricing: {
|
|
415
|
+
readonly input: 2.9e-7;
|
|
416
|
+
readonly output: 3.9e-7;
|
|
417
|
+
};
|
|
418
|
+
readonly contextWindow: 131072;
|
|
419
|
+
readonly maxOutput: 16384;
|
|
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: "llama-3.1-8b-instant";
|
|
432
|
+
readonly name: "Llama 3.1 8B Instant";
|
|
433
|
+
readonly provider: "groq";
|
|
434
|
+
readonly family: "llama";
|
|
435
|
+
readonly pricing: {
|
|
436
|
+
readonly input: 5e-8;
|
|
437
|
+
readonly output: 8e-8;
|
|
438
|
+
};
|
|
439
|
+
readonly contextWindow: 131072;
|
|
440
|
+
readonly maxOutput: 131072;
|
|
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: "llama-guard-3-8b";
|
|
453
|
+
readonly name: "Llama Guard 3 8B";
|
|
454
|
+
readonly provider: "groq";
|
|
455
|
+
readonly family: "llama";
|
|
456
|
+
readonly pricing: {
|
|
457
|
+
readonly input: 2e-7;
|
|
458
|
+
readonly output: 2e-7;
|
|
459
|
+
};
|
|
460
|
+
readonly contextWindow: 8192;
|
|
461
|
+
readonly maxOutput: 8192;
|
|
462
|
+
readonly modalities: {
|
|
463
|
+
readonly input: readonly ["text"];
|
|
464
|
+
readonly output: readonly ["text"];
|
|
465
|
+
};
|
|
466
|
+
readonly capabilities: {
|
|
467
|
+
readonly reasoning: false;
|
|
468
|
+
readonly toolCall: false;
|
|
469
|
+
readonly attachment: false;
|
|
470
|
+
readonly structuredOutput: false;
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
readonly id: "deepseek-r1-distill-llama-70b";
|
|
474
|
+
readonly name: "DeepSeek R1 Distill Llama 70B";
|
|
475
|
+
readonly provider: "groq";
|
|
476
|
+
readonly family: "deepseek-thinking";
|
|
477
|
+
readonly pricing: {
|
|
478
|
+
readonly input: 7.5e-7;
|
|
479
|
+
readonly output: 9.9e-7;
|
|
480
|
+
};
|
|
481
|
+
readonly contextWindow: 131072;
|
|
482
|
+
readonly maxOutput: 8192;
|
|
483
|
+
readonly modalities: {
|
|
484
|
+
readonly input: readonly ["text"];
|
|
485
|
+
readonly output: readonly ["text"];
|
|
486
|
+
};
|
|
487
|
+
readonly capabilities: {
|
|
488
|
+
readonly reasoning: true;
|
|
489
|
+
readonly toolCall: true;
|
|
490
|
+
readonly attachment: false;
|
|
491
|
+
readonly structuredOutput: false;
|
|
492
|
+
};
|
|
493
|
+
}, {
|
|
494
|
+
readonly id: "llama3-8b-8192";
|
|
495
|
+
readonly name: "Llama 3 8B";
|
|
496
|
+
readonly provider: "groq";
|
|
497
|
+
readonly family: "llama";
|
|
498
|
+
readonly pricing: {
|
|
499
|
+
readonly input: 5e-8;
|
|
500
|
+
readonly output: 8e-8;
|
|
501
|
+
};
|
|
502
|
+
readonly contextWindow: 8192;
|
|
503
|
+
readonly maxOutput: 8192;
|
|
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: "mistral-saba-24b";
|
|
516
|
+
readonly name: "Mistral Saba 24B";
|
|
517
|
+
readonly provider: "groq";
|
|
518
|
+
readonly family: "mistral";
|
|
519
|
+
readonly pricing: {
|
|
520
|
+
readonly input: 7.9e-7;
|
|
521
|
+
readonly output: 7.9e-7;
|
|
522
|
+
};
|
|
523
|
+
readonly contextWindow: 32768;
|
|
524
|
+
readonly maxOutput: 32768;
|
|
525
|
+
readonly modalities: {
|
|
526
|
+
readonly input: readonly ["text"];
|
|
527
|
+
readonly output: readonly ["text"];
|
|
528
|
+
};
|
|
529
|
+
readonly capabilities: {
|
|
530
|
+
readonly reasoning: false;
|
|
531
|
+
readonly toolCall: true;
|
|
532
|
+
readonly attachment: false;
|
|
533
|
+
readonly structuredOutput: false;
|
|
534
|
+
};
|
|
535
|
+
}, {
|
|
536
|
+
readonly id: "llama-3.3-70b-versatile";
|
|
537
|
+
readonly name: "Llama 3.3 70B Versatile";
|
|
538
|
+
readonly provider: "groq";
|
|
539
|
+
readonly family: "llama";
|
|
540
|
+
readonly pricing: {
|
|
541
|
+
readonly input: 5.9e-7;
|
|
542
|
+
readonly output: 7.9e-7;
|
|
543
|
+
};
|
|
544
|
+
readonly contextWindow: 131072;
|
|
545
|
+
readonly maxOutput: 32768;
|
|
546
|
+
readonly modalities: {
|
|
547
|
+
readonly input: readonly ["text"];
|
|
548
|
+
readonly output: readonly ["text"];
|
|
549
|
+
};
|
|
550
|
+
readonly capabilities: {
|
|
551
|
+
readonly reasoning: false;
|
|
552
|
+
readonly toolCall: true;
|
|
553
|
+
readonly attachment: false;
|
|
554
|
+
readonly structuredOutput: false;
|
|
555
|
+
};
|
|
556
|
+
}, {
|
|
557
|
+
readonly id: "gemma2-9b-it";
|
|
558
|
+
readonly name: "Gemma 2 9B";
|
|
559
|
+
readonly provider: "groq";
|
|
560
|
+
readonly family: "gemma";
|
|
561
|
+
readonly pricing: {
|
|
562
|
+
readonly input: 2e-7;
|
|
563
|
+
readonly output: 2e-7;
|
|
564
|
+
};
|
|
565
|
+
readonly contextWindow: 8192;
|
|
566
|
+
readonly maxOutput: 8192;
|
|
567
|
+
readonly modalities: {
|
|
568
|
+
readonly input: readonly ["text"];
|
|
569
|
+
readonly output: readonly ["text"];
|
|
570
|
+
};
|
|
571
|
+
readonly capabilities: {
|
|
572
|
+
readonly reasoning: false;
|
|
573
|
+
readonly toolCall: true;
|
|
574
|
+
readonly attachment: false;
|
|
575
|
+
readonly structuredOutput: false;
|
|
576
|
+
};
|
|
577
|
+
}, {
|
|
578
|
+
readonly id: "moonshotai/kimi-k2-instruct";
|
|
579
|
+
readonly name: "Kimi K2 Instruct";
|
|
580
|
+
readonly provider: "groq";
|
|
581
|
+
readonly family: "kimi";
|
|
582
|
+
readonly pricing: {
|
|
583
|
+
readonly input: 0.000001;
|
|
584
|
+
readonly output: 0.000003;
|
|
585
|
+
};
|
|
586
|
+
readonly contextWindow: 131072;
|
|
587
|
+
readonly maxOutput: 16384;
|
|
588
|
+
readonly modalities: {
|
|
589
|
+
readonly input: readonly ["text"];
|
|
590
|
+
readonly output: readonly ["text"];
|
|
591
|
+
};
|
|
592
|
+
readonly capabilities: {
|
|
593
|
+
readonly reasoning: false;
|
|
594
|
+
readonly toolCall: true;
|
|
595
|
+
readonly attachment: false;
|
|
596
|
+
readonly structuredOutput: false;
|
|
597
|
+
};
|
|
598
|
+
}, {
|
|
599
|
+
readonly id: "moonshotai/kimi-k2-instruct-0905";
|
|
600
|
+
readonly name: "Kimi K2 Instruct 0905";
|
|
601
|
+
readonly provider: "groq";
|
|
602
|
+
readonly family: "kimi";
|
|
603
|
+
readonly pricing: {
|
|
604
|
+
readonly input: 0.000001;
|
|
605
|
+
readonly output: 0.000003;
|
|
606
|
+
};
|
|
607
|
+
readonly contextWindow: 262144;
|
|
608
|
+
readonly maxOutput: 16384;
|
|
609
|
+
readonly modalities: {
|
|
610
|
+
readonly input: readonly ["text"];
|
|
611
|
+
readonly output: readonly ["text"];
|
|
612
|
+
};
|
|
613
|
+
readonly capabilities: {
|
|
614
|
+
readonly reasoning: false;
|
|
615
|
+
readonly toolCall: true;
|
|
616
|
+
readonly attachment: false;
|
|
617
|
+
readonly structuredOutput: true;
|
|
618
|
+
};
|
|
619
|
+
}, {
|
|
620
|
+
readonly id: "qwen/qwen3-32b";
|
|
621
|
+
readonly name: "Qwen3 32B";
|
|
622
|
+
readonly provider: "groq";
|
|
623
|
+
readonly family: "qwen";
|
|
624
|
+
readonly pricing: {
|
|
625
|
+
readonly input: 2.9e-7;
|
|
626
|
+
readonly output: 5.9e-7;
|
|
627
|
+
};
|
|
628
|
+
readonly contextWindow: 131072;
|
|
629
|
+
readonly maxOutput: 16384;
|
|
630
|
+
readonly modalities: {
|
|
631
|
+
readonly input: readonly ["text"];
|
|
632
|
+
readonly output: readonly ["text"];
|
|
633
|
+
};
|
|
634
|
+
readonly capabilities: {
|
|
635
|
+
readonly reasoning: true;
|
|
636
|
+
readonly toolCall: true;
|
|
637
|
+
readonly attachment: false;
|
|
638
|
+
readonly structuredOutput: false;
|
|
639
|
+
};
|
|
640
|
+
}, {
|
|
641
|
+
readonly id: "meta-llama/llama-4-scout-17b-16e-instruct";
|
|
642
|
+
readonly name: "Llama 4 Scout 17B";
|
|
643
|
+
readonly provider: "groq";
|
|
644
|
+
readonly family: "llama";
|
|
645
|
+
readonly pricing: {
|
|
646
|
+
readonly input: 1.1e-7;
|
|
647
|
+
readonly output: 3.4e-7;
|
|
648
|
+
};
|
|
649
|
+
readonly contextWindow: 131072;
|
|
650
|
+
readonly maxOutput: 8192;
|
|
651
|
+
readonly modalities: {
|
|
652
|
+
readonly input: readonly ["text", "image"];
|
|
653
|
+
readonly output: readonly ["text"];
|
|
654
|
+
};
|
|
655
|
+
readonly capabilities: {
|
|
656
|
+
readonly reasoning: false;
|
|
657
|
+
readonly toolCall: true;
|
|
658
|
+
readonly attachment: false;
|
|
659
|
+
readonly structuredOutput: true;
|
|
660
|
+
};
|
|
661
|
+
}, {
|
|
662
|
+
readonly id: "meta-llama/llama-guard-4-12b";
|
|
663
|
+
readonly name: "Llama Guard 4 12B";
|
|
664
|
+
readonly provider: "groq";
|
|
665
|
+
readonly family: "llama";
|
|
666
|
+
readonly pricing: {
|
|
667
|
+
readonly input: 2e-7;
|
|
668
|
+
readonly output: 2e-7;
|
|
669
|
+
};
|
|
670
|
+
readonly contextWindow: 131072;
|
|
671
|
+
readonly maxOutput: 1024;
|
|
672
|
+
readonly modalities: {
|
|
673
|
+
readonly input: readonly ["text", "image"];
|
|
674
|
+
readonly output: readonly ["text"];
|
|
675
|
+
};
|
|
676
|
+
readonly capabilities: {
|
|
677
|
+
readonly reasoning: false;
|
|
678
|
+
readonly toolCall: false;
|
|
679
|
+
readonly attachment: false;
|
|
680
|
+
readonly structuredOutput: false;
|
|
681
|
+
};
|
|
682
|
+
}, {
|
|
683
|
+
readonly id: "meta-llama/llama-4-maverick-17b-128e-instruct";
|
|
684
|
+
readonly name: "Llama 4 Maverick 17B";
|
|
685
|
+
readonly provider: "groq";
|
|
686
|
+
readonly family: "llama";
|
|
687
|
+
readonly pricing: {
|
|
688
|
+
readonly input: 2e-7;
|
|
689
|
+
readonly output: 6e-7;
|
|
690
|
+
};
|
|
691
|
+
readonly contextWindow: 131072;
|
|
692
|
+
readonly maxOutput: 8192;
|
|
693
|
+
readonly modalities: {
|
|
694
|
+
readonly input: readonly ["text", "image"];
|
|
695
|
+
readonly output: readonly ["text"];
|
|
696
|
+
};
|
|
697
|
+
readonly capabilities: {
|
|
698
|
+
readonly reasoning: false;
|
|
699
|
+
readonly toolCall: true;
|
|
700
|
+
readonly attachment: false;
|
|
701
|
+
readonly structuredOutput: true;
|
|
702
|
+
};
|
|
703
|
+
}, {
|
|
704
|
+
readonly id: "openai/gpt-oss-120b";
|
|
705
|
+
readonly name: "GPT OSS 120B";
|
|
706
|
+
readonly provider: "groq";
|
|
707
|
+
readonly family: "gpt-oss";
|
|
708
|
+
readonly pricing: {
|
|
709
|
+
readonly input: 1.5e-7;
|
|
710
|
+
readonly output: 6e-7;
|
|
711
|
+
};
|
|
712
|
+
readonly contextWindow: 131072;
|
|
713
|
+
readonly maxOutput: 65536;
|
|
714
|
+
readonly modalities: {
|
|
715
|
+
readonly input: readonly ["text"];
|
|
716
|
+
readonly output: readonly ["text"];
|
|
717
|
+
};
|
|
718
|
+
readonly capabilities: {
|
|
719
|
+
readonly reasoning: true;
|
|
720
|
+
readonly toolCall: true;
|
|
721
|
+
readonly attachment: false;
|
|
722
|
+
readonly structuredOutput: true;
|
|
723
|
+
};
|
|
724
|
+
}, {
|
|
725
|
+
readonly id: "openai/gpt-oss-20b";
|
|
726
|
+
readonly name: "GPT OSS 20B";
|
|
727
|
+
readonly provider: "groq";
|
|
728
|
+
readonly family: "gpt-oss";
|
|
729
|
+
readonly pricing: {
|
|
730
|
+
readonly input: 7.5e-8;
|
|
731
|
+
readonly output: 3e-7;
|
|
732
|
+
};
|
|
733
|
+
readonly contextWindow: 131072;
|
|
734
|
+
readonly maxOutput: 65536;
|
|
735
|
+
readonly modalities: {
|
|
736
|
+
readonly input: readonly ["text"];
|
|
737
|
+
readonly output: readonly ["text"];
|
|
738
|
+
};
|
|
739
|
+
readonly capabilities: {
|
|
740
|
+
readonly reasoning: true;
|
|
741
|
+
readonly toolCall: true;
|
|
742
|
+
readonly attachment: false;
|
|
743
|
+
readonly structuredOutput: true;
|
|
744
|
+
};
|
|
745
|
+
}];
|
|
746
|
+
/**
|
|
747
|
+
* Look up a Groq model by ID.
|
|
748
|
+
*
|
|
749
|
+
* @param id - The provider-native model identifier.
|
|
750
|
+
* @returns The matching model definition, or `null`.
|
|
751
|
+
*
|
|
752
|
+
* @example
|
|
753
|
+
* ```typescript
|
|
754
|
+
* import { groqModel } from '@funkai/models/groq'
|
|
755
|
+
*
|
|
756
|
+
* const m = groqModel('llama3-70b-8192')
|
|
757
|
+
* if (m) {
|
|
758
|
+
* console.log(m.pricing.input)
|
|
759
|
+
* }
|
|
760
|
+
* ```
|
|
761
|
+
*/
|
|
762
|
+
declare function groqModel(id: LiteralUnion<GroqModelId, string>): ModelDefinition | null;
|
|
763
|
+
//#endregion
|
|
764
|
+
export { GroqModelId, groqModel, groqModels };
|
|
765
|
+
//# sourceMappingURL=groq.d.mts.map
|