llm-strings 1.2.0 → 1.4.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.
Files changed (46) hide show
  1. package/README.md +3 -14
  2. package/dist/ai-sdk.cjs +355 -10
  3. package/dist/ai-sdk.d.cts +5 -4
  4. package/dist/ai-sdk.d.ts +5 -4
  5. package/dist/ai-sdk.js +87 -9
  6. package/dist/{chunk-BCOUH7LH.js → chunk-5YTG2NRX.js} +1 -2
  7. package/dist/{chunk-W4NIQY7M.js → chunk-76EFNZCF.js} +317 -4
  8. package/dist/{chunk-2ARD4TFU.js → chunk-DPVT3FFP.js} +1 -2
  9. package/dist/{chunk-RPXK2A7O.js → chunk-OBLFZFNR.js} +3 -4
  10. package/dist/index.cjs +317 -4
  11. package/dist/index.d.cts +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +4 -5
  14. package/dist/normalize.cjs +157 -4
  15. package/dist/normalize.d.cts +1 -1
  16. package/dist/normalize.d.ts +1 -1
  17. package/dist/normalize.js +2 -3
  18. package/dist/parse.cjs +27 -1
  19. package/dist/parse.d.cts +1 -1
  20. package/dist/parse.d.ts +1 -1
  21. package/dist/parse.js +2 -3
  22. package/dist/{provider-core-BiAl8MCV.d.cts → provider-core-B934MuhJ.d.cts} +2 -2
  23. package/dist/{provider-core-BiAl8MCV.d.ts → provider-core-B934MuhJ.d.ts} +2 -2
  24. package/dist/providers.cjs +451 -445
  25. package/dist/providers.d.cts +3 -8
  26. package/dist/providers.d.ts +3 -8
  27. package/dist/providers.js +135 -442
  28. package/dist/validate.cjs +317 -4
  29. package/dist/validate.js +4 -5
  30. package/package.json +1 -1
  31. package/dist/ai-sdk.cjs.map +0 -1
  32. package/dist/ai-sdk.js.map +0 -1
  33. package/dist/chunk-2ARD4TFU.js.map +0 -1
  34. package/dist/chunk-BCOUH7LH.js.map +0 -1
  35. package/dist/chunk-RPXK2A7O.js.map +0 -1
  36. package/dist/chunk-W4NIQY7M.js.map +0 -1
  37. package/dist/index.cjs.map +0 -1
  38. package/dist/index.js.map +0 -1
  39. package/dist/normalize.cjs.map +0 -1
  40. package/dist/normalize.js.map +0 -1
  41. package/dist/parse.cjs.map +0 -1
  42. package/dist/parse.js.map +0 -1
  43. package/dist/providers.cjs.map +0 -1
  44. package/dist/providers.js.map +0 -1
  45. package/dist/validate.cjs.map +0 -1
  46. package/dist/validate.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { P as Provider } from './provider-core-BiAl8MCV.cjs';
2
- export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-BiAl8MCV.cjs';
1
+ import { P as Provider } from './provider-core-B934MuhJ.cjs';
2
+ export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-B934MuhJ.cjs';
3
3
 
4
4
  interface ProviderMeta {
5
5
  /** Provider identifier — matches the Provider union type. */
@@ -12,11 +12,6 @@ interface ProviderMeta {
12
12
  color: string;
13
13
  }
14
14
  declare const PROVIDER_META: ProviderMeta[];
15
- /**
16
- * Suggested / common model IDs per provider, ordered by recency.
17
- * Not exhaustive — providers add models frequently.
18
- */
19
- declare const MODELS: Record<Provider, string[]>;
20
15
  /**
21
16
  * Canonical parameter spec — keyed by canonical (snake_case) param names
22
17
  * with defaults and descriptions for UI consumption.
@@ -31,4 +26,4 @@ interface CanonicalParamSpec {
31
26
  }
32
27
  declare const CANONICAL_PARAM_SPECS: Record<Provider, Record<string, CanonicalParamSpec>>;
33
28
 
34
- export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, MODELS, PROVIDER_META, Provider, type ProviderMeta };
29
+ export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, PROVIDER_META, Provider, type ProviderMeta };
@@ -1,5 +1,5 @@
1
- import { P as Provider } from './provider-core-BiAl8MCV.js';
2
- export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-BiAl8MCV.js';
1
+ import { P as Provider } from './provider-core-B934MuhJ.js';
2
+ export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-B934MuhJ.js';
3
3
 
4
4
  interface ProviderMeta {
5
5
  /** Provider identifier — matches the Provider union type. */
@@ -12,11 +12,6 @@ interface ProviderMeta {
12
12
  color: string;
13
13
  }
14
14
  declare const PROVIDER_META: ProviderMeta[];
15
- /**
16
- * Suggested / common model IDs per provider, ordered by recency.
17
- * Not exhaustive — providers add models frequently.
18
- */
19
- declare const MODELS: Record<Provider, string[]>;
20
15
  /**
21
16
  * Canonical parameter spec — keyed by canonical (snake_case) param names
22
17
  * with defaults and descriptions for UI consumption.
@@ -31,4 +26,4 @@ interface CanonicalParamSpec {
31
26
  }
32
27
  declare const CANONICAL_PARAM_SPECS: Record<Provider, Record<string, CanonicalParamSpec>>;
33
28
 
34
- export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, MODELS, PROVIDER_META, Provider, type ProviderMeta };
29
+ export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, PROVIDER_META, Provider, type ProviderMeta };
package/dist/providers.js CHANGED
@@ -16,11 +16,17 @@ import {
16
16
  isReasoningModel,
17
17
  providerFromHostAlias,
18
18
  resolveHostAlias
19
- } from "./chunk-W4NIQY7M.js";
19
+ } from "./chunk-76EFNZCF.js";
20
20
 
21
21
  // src/provider-meta.ts
22
22
  var PROVIDER_META = [
23
23
  { id: "openai", name: "OpenAI", host: "api.openai.com", color: "#10a37f" },
24
+ {
25
+ id: "azure",
26
+ name: "Azure OpenAI",
27
+ host: "models.inference.ai.azure.com",
28
+ color: "#0078d4"
29
+ },
24
30
  {
25
31
  id: "anthropic",
26
32
  name: "Anthropic",
@@ -33,6 +39,12 @@ var PROVIDER_META = [
33
39
  host: "generativelanguage.googleapis.com",
34
40
  color: "#4285f4"
35
41
  },
42
+ {
43
+ id: "google-vertex",
44
+ name: "Google Vertex AI",
45
+ host: "aiplatform.googleapis.com",
46
+ color: "#34a853"
47
+ },
36
48
  { id: "mistral", name: "Mistral", host: "api.mistral.ai", color: "#ff7000" },
37
49
  { id: "cohere", name: "Cohere", host: "api.cohere.com", color: "#39594d" },
38
50
  {
@@ -52,454 +64,137 @@ var PROVIDER_META = [
52
64
  name: "Vercel",
53
65
  host: "gateway.ai.vercel.app",
54
66
  color: "#ededed"
55
- }
56
- ];
57
- var MODELS = {
58
- openai: [
59
- "gpt-5.2",
60
- "gpt-5.2-pro",
61
- "gpt-4.1",
62
- "gpt-4.1-mini",
63
- "gpt-4.1-nano",
64
- "o3",
65
- "o3-mini",
66
- "o4-mini",
67
- "o1-pro"
68
- ],
69
- anthropic: [
70
- "claude-opus-4-6",
71
- "claude-sonnet-4-6",
72
- "claude-sonnet-4-5",
73
- "claude-haiku-4-5"
74
- ],
75
- google: [
76
- "gemini-3-pro-preview",
77
- "gemini-3-flash-preview",
78
- "gemini-2.5-pro",
79
- "gemini-2.5-flash"
80
- ],
81
- mistral: [
82
- "mistral-large-latest",
83
- "mistral-medium-latest",
84
- "mistral-small-latest",
85
- "codestral-latest",
86
- "magistral-medium-latest"
87
- ],
88
- cohere: [
89
- "command-a-03-2025",
90
- "command-r-plus-08-2024",
91
- "command-r-08-2024",
92
- "command-r7b-12-2024"
93
- ],
94
- bedrock: [
95
- "anthropic.claude-opus-4-6-v1",
96
- "anthropic.claude-sonnet-4-6-v1",
97
- "anthropic.claude-haiku-4-5-v1",
98
- "amazon.nova-pro-v1",
99
- "amazon.nova-lite-v1",
100
- "meta.llama3-70b-instruct-v1:0"
101
- ],
102
- openrouter: [
103
- "openai/gpt-5.2",
104
- "anthropic/claude-opus-4-6",
105
- "google/gemini-2.5-pro",
106
- "mistral/mistral-large-latest"
107
- ],
108
- vercel: [
109
- "openai/gpt-5.2",
110
- "anthropic/claude-opus-4-6",
111
- "google/gemini-2.5-pro",
112
- "google/gemini-3-pro-preview",
113
- "google/gemini-3-flash-preview",
114
- "mistral/mistral-large-latest",
115
- "qwen/qwen2.5-pro"
116
- ]
117
- };
118
- var CANONICAL_PARAM_SPECS = {
119
- openai: {
120
- temperature: {
121
- type: "number",
122
- min: 0,
123
- max: 2,
124
- default: 0.7,
125
- description: "Controls randomness"
126
- },
127
- max_tokens: {
128
- type: "number",
129
- min: 1,
130
- default: 4096,
131
- description: "Maximum output tokens"
132
- },
133
- top_p: {
134
- type: "number",
135
- min: 0,
136
- max: 1,
137
- default: 1,
138
- description: "Nucleus sampling"
139
- },
140
- frequency_penalty: {
141
- type: "number",
142
- min: -2,
143
- max: 2,
144
- default: 0,
145
- description: "Penalize frequent tokens"
146
- },
147
- presence_penalty: {
148
- type: "number",
149
- min: -2,
150
- max: 2,
151
- default: 0,
152
- description: "Penalize repeated topics"
153
- },
154
- stop: { type: "string", default: "", description: "Stop sequences" },
155
- n: { type: "number", min: 1, default: 1, description: "Completions count" },
156
- seed: { type: "number", default: "", description: "Random seed" },
157
- stream: { type: "boolean", default: false, description: "Stream response" },
158
- effort: {
159
- type: "enum",
160
- values: ["none", "minimal", "low", "medium", "high", "xhigh"],
161
- default: "medium",
162
- description: "Reasoning effort"
163
- }
164
67
  },
165
- anthropic: {
166
- temperature: {
167
- type: "number",
168
- min: 0,
169
- max: 1,
170
- default: 0.7,
171
- description: "Controls randomness"
172
- },
173
- max_tokens: {
174
- type: "number",
175
- min: 1,
176
- default: 4096,
177
- description: "Maximum output tokens"
178
- },
179
- top_p: {
180
- type: "number",
181
- min: 0,
182
- max: 1,
183
- default: 1,
184
- description: "Nucleus sampling"
185
- },
186
- top_k: {
187
- type: "number",
188
- min: 0,
189
- default: 40,
190
- description: "Top-K sampling"
191
- },
192
- stop: { type: "string", default: "", description: "Stop sequences" },
193
- stream: { type: "boolean", default: false, description: "Stream response" },
194
- effort: {
195
- type: "enum",
196
- values: ["low", "medium", "high", "max"],
197
- default: "medium",
198
- description: "Thinking effort"
199
- },
200
- cache: {
201
- type: "enum",
202
- values: ["ephemeral"],
203
- default: "ephemeral",
204
- description: "Cache control"
205
- },
206
- cache_ttl: {
207
- type: "enum",
208
- values: ["5m", "1h"],
209
- default: "5m",
210
- description: "Cache TTL"
211
- }
68
+ { id: "xai", name: "xAI", host: "api.x.ai", color: "#111111" },
69
+ { id: "groq", name: "Groq", host: "api.groq.com", color: "#f55036" },
70
+ { id: "fal", name: "Fal", host: "fal.run", color: "#111111" },
71
+ {
72
+ id: "deepinfra",
73
+ name: "DeepInfra",
74
+ host: "api.deepinfra.com",
75
+ color: "#2563eb"
212
76
  },
213
- google: {
214
- temperature: {
215
- type: "number",
216
- min: 0,
217
- max: 2,
218
- default: 0.7,
219
- description: "Controls randomness"
220
- },
221
- max_tokens: {
222
- type: "number",
223
- min: 1,
224
- default: 4096,
225
- description: "Maximum output tokens"
226
- },
227
- top_p: {
228
- type: "number",
229
- min: 0,
230
- max: 1,
231
- default: 1,
232
- description: "Nucleus sampling"
233
- },
234
- top_k: {
235
- type: "number",
236
- min: 0,
237
- default: 40,
238
- description: "Top-K sampling"
239
- },
240
- frequency_penalty: {
241
- type: "number",
242
- min: -2,
243
- max: 2,
244
- default: 0,
245
- description: "Penalize frequent tokens"
246
- },
247
- presence_penalty: {
248
- type: "number",
249
- min: -2,
250
- max: 2,
251
- default: 0,
252
- description: "Penalize repeated topics"
253
- },
254
- stop: { type: "string", default: "", description: "Stop sequences" },
255
- n: { type: "number", min: 1, default: 1, description: "Candidate count" },
256
- stream: { type: "boolean", default: false, description: "Stream response" },
257
- seed: { type: "number", default: "", description: "Random seed" }
77
+ {
78
+ id: "black-forest-labs",
79
+ name: "Black Forest Labs",
80
+ host: "api.bfl.ai",
81
+ color: "#111111"
258
82
  },
259
- mistral: {
260
- temperature: {
261
- type: "number",
262
- min: 0,
263
- max: 1,
264
- default: 0.7,
265
- description: "Controls randomness"
266
- },
267
- max_tokens: {
268
- type: "number",
269
- min: 1,
270
- default: 4096,
271
- description: "Maximum output tokens"
272
- },
273
- top_p: {
274
- type: "number",
275
- min: 0,
276
- max: 1,
277
- default: 1,
278
- description: "Nucleus sampling"
279
- },
280
- frequency_penalty: {
281
- type: "number",
282
- min: -2,
283
- max: 2,
284
- default: 0,
285
- description: "Penalize frequent tokens"
286
- },
287
- presence_penalty: {
288
- type: "number",
289
- min: -2,
290
- max: 2,
291
- default: 0,
292
- description: "Penalize repeated topics"
293
- },
294
- stop: { type: "string", default: "", description: "Stop sequences" },
295
- n: { type: "number", min: 1, default: 1, description: "Completions count" },
296
- seed: { type: "number", default: "", description: "Random seed" },
297
- stream: { type: "boolean", default: false, description: "Stream response" },
298
- safe_prompt: {
299
- type: "boolean",
300
- default: false,
301
- description: "Enable safe prompt"
302
- },
303
- min_tokens: {
304
- type: "number",
305
- min: 0,
306
- default: 0,
307
- description: "Minimum tokens"
308
- }
83
+ {
84
+ id: "together",
85
+ name: "Together.ai",
86
+ host: "api.together.xyz",
87
+ color: "#ff4f00"
309
88
  },
310
- cohere: {
311
- temperature: {
312
- type: "number",
313
- min: 0,
314
- max: 1,
315
- default: 0.7,
316
- description: "Controls randomness"
317
- },
318
- max_tokens: {
319
- type: "number",
320
- min: 1,
321
- default: 4096,
322
- description: "Maximum output tokens"
323
- },
324
- top_p: {
325
- type: "number",
326
- min: 0,
327
- max: 1,
328
- default: 1,
329
- description: "Nucleus sampling (p)"
330
- },
331
- top_k: {
332
- type: "number",
333
- min: 0,
334
- max: 500,
335
- default: 40,
336
- description: "Top-K sampling (k)"
337
- },
338
- frequency_penalty: {
339
- type: "number",
340
- min: 0,
341
- max: 1,
342
- default: 0,
343
- description: "Penalize frequent tokens"
344
- },
345
- presence_penalty: {
346
- type: "number",
347
- min: 0,
348
- max: 1,
349
- default: 0,
350
- description: "Penalize repeated topics"
351
- },
352
- stop: { type: "string", default: "", description: "Stop sequences" },
353
- stream: { type: "boolean", default: false, description: "Stream response" },
354
- seed: { type: "number", default: "", description: "Random seed" }
89
+ {
90
+ id: "fireworks",
91
+ name: "Fireworks",
92
+ host: "api.fireworks.ai",
93
+ color: "#7c3aed"
355
94
  },
356
- bedrock: {
357
- temperature: {
358
- type: "number",
359
- min: 0,
360
- max: 1,
361
- default: 0.7,
362
- description: "Controls randomness"
363
- },
364
- max_tokens: {
365
- type: "number",
366
- min: 1,
367
- default: 4096,
368
- description: "Maximum output tokens"
369
- },
370
- top_p: {
371
- type: "number",
372
- min: 0,
373
- max: 1,
374
- default: 1,
375
- description: "Nucleus sampling"
376
- },
377
- top_k: {
378
- type: "number",
379
- min: 0,
380
- default: 40,
381
- description: "Top-K sampling"
382
- },
383
- stop: { type: "string", default: "", description: "Stop sequences" },
384
- stream: { type: "boolean", default: false, description: "Stream response" },
385
- cache: {
386
- type: "enum",
387
- values: ["ephemeral"],
388
- default: "ephemeral",
389
- description: "Cache control"
390
- },
391
- cache_ttl: {
392
- type: "enum",
393
- values: ["5m", "1h"],
394
- default: "5m",
395
- description: "Cache TTL"
396
- }
95
+ {
96
+ id: "deepseek",
97
+ name: "DeepSeek",
98
+ host: "api.deepseek.com",
99
+ color: "#4d6bfe"
397
100
  },
398
- openrouter: {
399
- temperature: {
400
- type: "number",
401
- min: 0,
402
- max: 2,
403
- default: 0.7,
404
- description: "Controls randomness"
405
- },
406
- max_tokens: {
407
- type: "number",
408
- min: 1,
409
- default: 4096,
410
- description: "Maximum output tokens"
411
- },
412
- top_p: {
413
- type: "number",
414
- min: 0,
415
- max: 1,
416
- default: 1,
417
- description: "Nucleus sampling"
418
- },
419
- top_k: {
420
- type: "number",
421
- min: 0,
422
- default: 40,
423
- description: "Top-K sampling"
424
- },
425
- frequency_penalty: {
426
- type: "number",
427
- min: -2,
428
- max: 2,
429
- default: 0,
430
- description: "Penalize frequent tokens"
431
- },
432
- presence_penalty: {
433
- type: "number",
434
- min: -2,
435
- max: 2,
436
- default: 0,
437
- description: "Penalize repeated topics"
438
- },
439
- stop: { type: "string", default: "", description: "Stop sequences" },
440
- n: { type: "number", min: 1, default: 1, description: "Completions count" },
441
- seed: { type: "number", default: "", description: "Random seed" },
442
- stream: { type: "boolean", default: false, description: "Stream response" },
443
- effort: {
444
- type: "enum",
445
- values: ["none", "minimal", "low", "medium", "high", "xhigh"],
446
- default: "medium",
447
- description: "Reasoning effort"
448
- }
101
+ {
102
+ id: "moonshotai",
103
+ name: "Moonshot AI",
104
+ host: "api.moonshot.ai",
105
+ color: "#6b46ff"
106
+ },
107
+ {
108
+ id: "perplexity",
109
+ name: "Perplexity",
110
+ host: "api.perplexity.ai",
111
+ color: "#20b8cd"
449
112
  },
450
- vercel: {
451
- temperature: {
452
- type: "number",
453
- min: 0,
454
- max: 2,
455
- default: 0.7,
456
- description: "Controls randomness"
457
- },
458
- max_tokens: {
459
- type: "number",
460
- min: 1,
461
- default: 4096,
462
- description: "Maximum output tokens"
463
- },
464
- top_p: {
465
- type: "number",
466
- min: 0,
467
- max: 1,
468
- default: 1,
469
- description: "Nucleus sampling"
470
- },
471
- top_k: {
472
- type: "number",
473
- min: 0,
474
- default: 40,
475
- description: "Top-K sampling"
476
- },
477
- frequency_penalty: {
478
- type: "number",
479
- min: -2,
480
- max: 2,
481
- default: 0,
482
- description: "Penalize frequent tokens"
483
- },
484
- presence_penalty: {
485
- type: "number",
486
- min: -2,
487
- max: 2,
488
- default: 0,
489
- description: "Penalize repeated topics"
490
- },
491
- stop: { type: "string", default: "", description: "Stop sequences" },
492
- n: { type: "number", min: 1, default: 1, description: "Completions count" },
493
- seed: { type: "number", default: "", description: "Random seed" },
494
- stream: { type: "boolean", default: false, description: "Stream response" },
495
- effort: {
496
- type: "enum",
497
- values: ["none", "minimal", "low", "medium", "high", "xhigh"],
498
- default: "medium",
499
- description: "Reasoning effort"
113
+ {
114
+ id: "alibaba",
115
+ name: "Alibaba",
116
+ host: "dashscope-intl.aliyuncs.com",
117
+ color: "#ff6a00"
118
+ },
119
+ {
120
+ id: "cerebras",
121
+ name: "Cerebras",
122
+ host: "api.cerebras.ai",
123
+ color: "#d71920"
124
+ },
125
+ {
126
+ id: "replicate",
127
+ name: "Replicate",
128
+ host: "api.replicate.com",
129
+ color: "#111111"
130
+ },
131
+ { id: "prodia", name: "Prodia", host: "api.prodia.com", color: "#6d28d9" },
132
+ { id: "luma", name: "Luma", host: "api.lumalabs.ai", color: "#111111" },
133
+ {
134
+ id: "bytedance",
135
+ name: "ByteDance",
136
+ host: "ark.cn-beijing.volces.com",
137
+ color: "#2563eb"
138
+ },
139
+ { id: "kling", name: "Kling AI", host: "api.klingai.com", color: "#111111" },
140
+ {
141
+ id: "elevenlabs",
142
+ name: "ElevenLabs",
143
+ host: "api.elevenlabs.io",
144
+ color: "#111111"
145
+ },
146
+ {
147
+ id: "assemblyai",
148
+ name: "AssemblyAI",
149
+ host: "api.assemblyai.com",
150
+ color: "#4f46e5"
151
+ },
152
+ {
153
+ id: "deepgram",
154
+ name: "Deepgram",
155
+ host: "api.deepgram.com",
156
+ color: "#13ef93"
157
+ },
158
+ { id: "gladia", name: "Gladia", host: "api.gladia.io", color: "#7c3aed" },
159
+ { id: "lmnt", name: "LMNT", host: "api.lmnt.com", color: "#14b8a6" },
160
+ { id: "hume", name: "Hume", host: "api.hume.ai", color: "#8b5cf6" },
161
+ { id: "revai", name: "Rev.ai", host: "api.rev.ai", color: "#ef4444" },
162
+ {
163
+ id: "baseten",
164
+ name: "Baseten",
165
+ host: "api.baseten.co",
166
+ color: "#111111"
167
+ },
168
+ {
169
+ id: "huggingface",
170
+ name: "Hugging Face",
171
+ host: "api-inference.huggingface.co",
172
+ color: "#ffcc4d"
173
+ }
174
+ ];
175
+ function toCanonicalParamSpec(spec) {
176
+ return {
177
+ ...spec,
178
+ type: spec.values ? "enum" : spec.type,
179
+ default: spec.default ?? (spec.type === "string" && !spec.values ? "" : void 0)
180
+ };
181
+ }
182
+ function deriveCanonicalParamSpecs() {
183
+ const specs = {};
184
+ for (const provider of Object.keys(PROVIDER_PARAMS)) {
185
+ specs[provider] = {};
186
+ for (const [canonicalName, providerName] of Object.entries(
187
+ PROVIDER_PARAMS[provider]
188
+ )) {
189
+ const spec = PARAM_SPECS[provider][providerName];
190
+ if (spec) {
191
+ specs[provider][canonicalName] = toCanonicalParamSpec(spec);
192
+ }
500
193
  }
501
194
  }
502
- };
195
+ return specs;
196
+ }
197
+ var CANONICAL_PARAM_SPECS = deriveCanonicalParamSpecs();
503
198
  export {
504
199
  ALIASES,
505
200
  CACHE_TTLS,
@@ -507,7 +202,6 @@ export {
507
202
  CANONICAL_PARAM_SPECS,
508
203
  DURATION_RE,
509
204
  HOST_ALIASES,
510
- MODELS,
511
205
  PARAM_SPECS,
512
206
  PROVIDER_META,
513
207
  PROVIDER_PARAMS,
@@ -522,4 +216,3 @@ export {
522
216
  providerFromHostAlias,
523
217
  resolveHostAlias
524
218
  };
525
- //# sourceMappingURL=providers.js.map