llm-strings 1.3.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.
- package/README.md +2 -11
- package/dist/ai-sdk.cjs +0 -1
- package/dist/ai-sdk.js +3 -4
- package/dist/{chunk-TQJ2ABCT.js → chunk-5YTG2NRX.js} +1 -2
- package/dist/{chunk-OCJX4QFJ.js → chunk-76EFNZCF.js} +0 -1
- package/dist/{chunk-NZR5DUX5.js → chunk-DPVT3FFP.js} +1 -2
- package/dist/{chunk-7HE4RH6X.js → chunk-OBLFZFNR.js} +3 -4
- package/dist/index.cjs +0 -1
- package/dist/index.js +4 -5
- package/dist/normalize.cjs +0 -1
- package/dist/normalize.js +2 -3
- package/dist/parse.cjs +0 -1
- package/dist/parse.js +2 -3
- package/dist/providers.cjs +22 -622
- package/dist/providers.d.cts +1 -6
- package/dist/providers.d.ts +1 -6
- package/dist/providers.js +23 -622
- package/dist/validate.cjs +0 -1
- package/dist/validate.js +4 -5
- package/package.json +1 -1
- package/dist/ai-sdk.cjs.map +0 -1
- package/dist/ai-sdk.js.map +0 -1
- package/dist/chunk-7HE4RH6X.js.map +0 -1
- package/dist/chunk-NZR5DUX5.js.map +0 -1
- package/dist/chunk-OCJX4QFJ.js.map +0 -1
- package/dist/chunk-TQJ2ABCT.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/normalize.cjs.map +0 -1
- package/dist/normalize.js.map +0 -1
- package/dist/parse.cjs.map +0 -1
- package/dist/parse.js.map +0 -1
- package/dist/providers.cjs.map +0 -1
- package/dist/providers.js.map +0 -1
- package/dist/validate.cjs.map +0 -1
- package/dist/validate.js.map +0 -1
package/dist/providers.cjs
CHANGED
|
@@ -26,7 +26,6 @@ __export(providers_exports, {
|
|
|
26
26
|
CANONICAL_PARAM_SPECS: () => CANONICAL_PARAM_SPECS,
|
|
27
27
|
DURATION_RE: () => DURATION_RE,
|
|
28
28
|
HOST_ALIASES: () => HOST_ALIASES,
|
|
29
|
-
MODELS: () => MODELS,
|
|
30
29
|
PARAM_SPECS: () => PARAM_SPECS,
|
|
31
30
|
PROVIDER_META: () => PROVIDER_META,
|
|
32
31
|
PROVIDER_PARAMS: () => PROVIDER_PARAMS,
|
|
@@ -1221,626 +1220,29 @@ var PROVIDER_META = [
|
|
|
1221
1220
|
color: "#ffcc4d"
|
|
1222
1221
|
}
|
|
1223
1222
|
];
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
"
|
|
1228
|
-
"
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
],
|
|
1243
|
-
google: [
|
|
1244
|
-
"gemini-3-pro-preview",
|
|
1245
|
-
"gemini-3-flash-preview",
|
|
1246
|
-
"gemini-2.5-pro",
|
|
1247
|
-
"gemini-2.5-flash"
|
|
1248
|
-
],
|
|
1249
|
-
"google-vertex": [
|
|
1250
|
-
"gemini-3-pro-preview",
|
|
1251
|
-
"gemini-3-flash-preview",
|
|
1252
|
-
"gemini-2.5-pro",
|
|
1253
|
-
"gemini-2.5-flash"
|
|
1254
|
-
],
|
|
1255
|
-
mistral: [
|
|
1256
|
-
"mistral-large-latest",
|
|
1257
|
-
"mistral-medium-latest",
|
|
1258
|
-
"mistral-small-latest",
|
|
1259
|
-
"codestral-latest",
|
|
1260
|
-
"magistral-medium-latest"
|
|
1261
|
-
],
|
|
1262
|
-
cohere: [
|
|
1263
|
-
"command-a-03-2025",
|
|
1264
|
-
"command-r-plus-08-2024",
|
|
1265
|
-
"command-r-08-2024",
|
|
1266
|
-
"command-r7b-12-2024"
|
|
1267
|
-
],
|
|
1268
|
-
bedrock: [
|
|
1269
|
-
"anthropic.claude-opus-4-6-v1",
|
|
1270
|
-
"anthropic.claude-sonnet-4-6-v1",
|
|
1271
|
-
"anthropic.claude-haiku-4-5-v1",
|
|
1272
|
-
"amazon.nova-pro-v1",
|
|
1273
|
-
"amazon.nova-lite-v1",
|
|
1274
|
-
"meta.llama3-70b-instruct-v1:0"
|
|
1275
|
-
],
|
|
1276
|
-
openrouter: [
|
|
1277
|
-
"openai/gpt-5.2",
|
|
1278
|
-
"anthropic/claude-opus-4-6",
|
|
1279
|
-
"google/gemini-2.5-pro",
|
|
1280
|
-
"mistral/mistral-large-latest"
|
|
1281
|
-
],
|
|
1282
|
-
vercel: [
|
|
1283
|
-
"openai/gpt-5.2",
|
|
1284
|
-
"anthropic/claude-opus-4-6",
|
|
1285
|
-
"google/gemini-2.5-pro",
|
|
1286
|
-
"google/gemini-3-pro-preview",
|
|
1287
|
-
"google/gemini-3-flash-preview",
|
|
1288
|
-
"mistral/mistral-large-latest",
|
|
1289
|
-
"qwen/qwen2.5-pro"
|
|
1290
|
-
],
|
|
1291
|
-
xai: ["grok-4", "grok-3", "grok-3-mini"],
|
|
1292
|
-
groq: ["openai/gpt-oss-120b", "llama-3.3-70b-versatile"],
|
|
1293
|
-
fal: ["fal-ai/flux-pro", "fal-ai/imagen4/preview"],
|
|
1294
|
-
deepinfra: [
|
|
1295
|
-
"meta-llama/Meta-Llama-3.1-70B-Instruct",
|
|
1296
|
-
"deepseek-ai/DeepSeek-V3"
|
|
1297
|
-
],
|
|
1298
|
-
"black-forest-labs": ["flux-pro-1.1", "flux-kontext-pro"],
|
|
1299
|
-
together: [
|
|
1300
|
-
"meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
1301
|
-
"deepseek-ai/DeepSeek-V3"
|
|
1302
|
-
],
|
|
1303
|
-
fireworks: [
|
|
1304
|
-
"accounts/fireworks/models/llama-v3p1-70b-instruct",
|
|
1305
|
-
"accounts/fireworks/models/deepseek-v3"
|
|
1306
|
-
],
|
|
1307
|
-
deepseek: ["deepseek-chat", "deepseek-reasoner"],
|
|
1308
|
-
moonshotai: ["kimi-k2-0905-preview", "moonshot-v1-128k"],
|
|
1309
|
-
perplexity: ["sonar", "sonar-pro", "sonar-reasoning"],
|
|
1310
|
-
alibaba: ["qwen-plus", "qwen-max", "qwen3-coder-plus"],
|
|
1311
|
-
cerebras: ["llama3.1-8b", "llama-3.3-70b"],
|
|
1312
|
-
replicate: [
|
|
1313
|
-
"black-forest-labs/flux-schnell",
|
|
1314
|
-
"meta/meta-llama-3-70b-instruct"
|
|
1315
|
-
],
|
|
1316
|
-
prodia: ["sdxl", "flux-schnell"],
|
|
1317
|
-
luma: ["ray-2", "photon-1"],
|
|
1318
|
-
bytedance: ["seedream-4-0", "seedance-1-0-pro"],
|
|
1319
|
-
kling: ["kling-v2.1", "kling-v1.6"],
|
|
1320
|
-
elevenlabs: ["eleven_multilingual_v2", "eleven_turbo_v2_5"],
|
|
1321
|
-
assemblyai: ["universal"],
|
|
1322
|
-
deepgram: ["nova-3", "nova-2"],
|
|
1323
|
-
gladia: ["solaria-1"],
|
|
1324
|
-
lmnt: ["aurora"],
|
|
1325
|
-
hume: ["octave"],
|
|
1326
|
-
revai: ["machine"],
|
|
1327
|
-
baseten: ["meta-llama/Llama-3.1-8B-Instruct", "deepseek-ai/DeepSeek-R1"],
|
|
1328
|
-
huggingface: [
|
|
1329
|
-
"meta-llama/Llama-3.1-8B-Instruct",
|
|
1330
|
-
"mistralai/Mistral-7B-Instruct-v0.3"
|
|
1331
|
-
]
|
|
1332
|
-
};
|
|
1333
|
-
var OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS = {
|
|
1334
|
-
temperature: {
|
|
1335
|
-
type: "number",
|
|
1336
|
-
min: 0,
|
|
1337
|
-
max: 2,
|
|
1338
|
-
default: 0.7,
|
|
1339
|
-
description: "Controls randomness"
|
|
1340
|
-
},
|
|
1341
|
-
max_tokens: {
|
|
1342
|
-
type: "number",
|
|
1343
|
-
min: 1,
|
|
1344
|
-
default: 4096,
|
|
1345
|
-
description: "Maximum output tokens"
|
|
1346
|
-
},
|
|
1347
|
-
top_p: {
|
|
1348
|
-
type: "number",
|
|
1349
|
-
min: 0,
|
|
1350
|
-
max: 1,
|
|
1351
|
-
default: 1,
|
|
1352
|
-
description: "Nucleus sampling"
|
|
1353
|
-
},
|
|
1354
|
-
top_k: {
|
|
1355
|
-
type: "number",
|
|
1356
|
-
min: 0,
|
|
1357
|
-
default: 40,
|
|
1358
|
-
description: "Top-K sampling"
|
|
1359
|
-
},
|
|
1360
|
-
frequency_penalty: {
|
|
1361
|
-
type: "number",
|
|
1362
|
-
min: -2,
|
|
1363
|
-
max: 2,
|
|
1364
|
-
default: 0,
|
|
1365
|
-
description: "Penalize frequent tokens"
|
|
1366
|
-
},
|
|
1367
|
-
presence_penalty: {
|
|
1368
|
-
type: "number",
|
|
1369
|
-
min: -2,
|
|
1370
|
-
max: 2,
|
|
1371
|
-
default: 0,
|
|
1372
|
-
description: "Penalize repeated topics"
|
|
1373
|
-
},
|
|
1374
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1375
|
-
n: { type: "number", min: 1, default: 1, description: "Completions count" },
|
|
1376
|
-
seed: { type: "number", default: "", description: "Random seed" },
|
|
1377
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1378
|
-
effort: {
|
|
1379
|
-
type: "enum",
|
|
1380
|
-
values: ["none", "minimal", "low", "medium", "high", "xhigh"],
|
|
1381
|
-
default: "medium",
|
|
1382
|
-
description: "Reasoning effort"
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
|
-
var GOOGLE_COMPATIBLE_CANONICAL_PARAM_SPECS = {
|
|
1386
|
-
temperature: {
|
|
1387
|
-
type: "number",
|
|
1388
|
-
min: 0,
|
|
1389
|
-
max: 2,
|
|
1390
|
-
default: 0.7,
|
|
1391
|
-
description: "Controls randomness"
|
|
1392
|
-
},
|
|
1393
|
-
max_tokens: {
|
|
1394
|
-
type: "number",
|
|
1395
|
-
min: 1,
|
|
1396
|
-
default: 4096,
|
|
1397
|
-
description: "Maximum output tokens"
|
|
1398
|
-
},
|
|
1399
|
-
top_p: {
|
|
1400
|
-
type: "number",
|
|
1401
|
-
min: 0,
|
|
1402
|
-
max: 1,
|
|
1403
|
-
default: 1,
|
|
1404
|
-
description: "Nucleus sampling"
|
|
1405
|
-
},
|
|
1406
|
-
top_k: {
|
|
1407
|
-
type: "number",
|
|
1408
|
-
min: 0,
|
|
1409
|
-
default: 40,
|
|
1410
|
-
description: "Top-K sampling"
|
|
1411
|
-
},
|
|
1412
|
-
frequency_penalty: {
|
|
1413
|
-
type: "number",
|
|
1414
|
-
min: -2,
|
|
1415
|
-
max: 2,
|
|
1416
|
-
default: 0,
|
|
1417
|
-
description: "Penalize frequent tokens"
|
|
1418
|
-
},
|
|
1419
|
-
presence_penalty: {
|
|
1420
|
-
type: "number",
|
|
1421
|
-
min: -2,
|
|
1422
|
-
max: 2,
|
|
1423
|
-
default: 0,
|
|
1424
|
-
description: "Penalize repeated topics"
|
|
1425
|
-
},
|
|
1426
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1427
|
-
n: { type: "number", min: 1, default: 1, description: "Candidate count" },
|
|
1428
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1429
|
-
seed: { type: "number", default: "", description: "Random seed" }
|
|
1430
|
-
};
|
|
1431
|
-
var CANONICAL_PARAM_SPECS = {
|
|
1432
|
-
openai: {
|
|
1433
|
-
temperature: {
|
|
1434
|
-
type: "number",
|
|
1435
|
-
min: 0,
|
|
1436
|
-
max: 2,
|
|
1437
|
-
default: 0.7,
|
|
1438
|
-
description: "Controls randomness"
|
|
1439
|
-
},
|
|
1440
|
-
max_tokens: {
|
|
1441
|
-
type: "number",
|
|
1442
|
-
min: 1,
|
|
1443
|
-
default: 4096,
|
|
1444
|
-
description: "Maximum output tokens"
|
|
1445
|
-
},
|
|
1446
|
-
top_p: {
|
|
1447
|
-
type: "number",
|
|
1448
|
-
min: 0,
|
|
1449
|
-
max: 1,
|
|
1450
|
-
default: 1,
|
|
1451
|
-
description: "Nucleus sampling"
|
|
1452
|
-
},
|
|
1453
|
-
frequency_penalty: {
|
|
1454
|
-
type: "number",
|
|
1455
|
-
min: -2,
|
|
1456
|
-
max: 2,
|
|
1457
|
-
default: 0,
|
|
1458
|
-
description: "Penalize frequent tokens"
|
|
1459
|
-
},
|
|
1460
|
-
presence_penalty: {
|
|
1461
|
-
type: "number",
|
|
1462
|
-
min: -2,
|
|
1463
|
-
max: 2,
|
|
1464
|
-
default: 0,
|
|
1465
|
-
description: "Penalize repeated topics"
|
|
1466
|
-
},
|
|
1467
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1468
|
-
n: { type: "number", min: 1, default: 1, description: "Completions count" },
|
|
1469
|
-
seed: { type: "number", default: "", description: "Random seed" },
|
|
1470
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1471
|
-
effort: {
|
|
1472
|
-
type: "enum",
|
|
1473
|
-
values: ["none", "minimal", "low", "medium", "high", "xhigh"],
|
|
1474
|
-
default: "medium",
|
|
1475
|
-
description: "Reasoning effort"
|
|
1476
|
-
}
|
|
1477
|
-
},
|
|
1478
|
-
azure: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1479
|
-
anthropic: {
|
|
1480
|
-
temperature: {
|
|
1481
|
-
type: "number",
|
|
1482
|
-
min: 0,
|
|
1483
|
-
max: 1,
|
|
1484
|
-
default: 0.7,
|
|
1485
|
-
description: "Controls randomness"
|
|
1486
|
-
},
|
|
1487
|
-
max_tokens: {
|
|
1488
|
-
type: "number",
|
|
1489
|
-
min: 1,
|
|
1490
|
-
default: 4096,
|
|
1491
|
-
description: "Maximum output tokens"
|
|
1492
|
-
},
|
|
1493
|
-
top_p: {
|
|
1494
|
-
type: "number",
|
|
1495
|
-
min: 0,
|
|
1496
|
-
max: 1,
|
|
1497
|
-
default: 1,
|
|
1498
|
-
description: "Nucleus sampling"
|
|
1499
|
-
},
|
|
1500
|
-
top_k: {
|
|
1501
|
-
type: "number",
|
|
1502
|
-
min: 0,
|
|
1503
|
-
default: 40,
|
|
1504
|
-
description: "Top-K sampling"
|
|
1505
|
-
},
|
|
1506
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1507
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1508
|
-
effort: {
|
|
1509
|
-
type: "enum",
|
|
1510
|
-
values: ["low", "medium", "high", "max"],
|
|
1511
|
-
default: "medium",
|
|
1512
|
-
description: "Thinking effort"
|
|
1513
|
-
},
|
|
1514
|
-
cache: {
|
|
1515
|
-
type: "enum",
|
|
1516
|
-
values: ["ephemeral"],
|
|
1517
|
-
default: "ephemeral",
|
|
1518
|
-
description: "Cache control"
|
|
1519
|
-
},
|
|
1520
|
-
cache_ttl: {
|
|
1521
|
-
type: "enum",
|
|
1522
|
-
values: ["5m", "1h"],
|
|
1523
|
-
default: "5m",
|
|
1524
|
-
description: "Cache TTL"
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
google: {
|
|
1528
|
-
temperature: {
|
|
1529
|
-
type: "number",
|
|
1530
|
-
min: 0,
|
|
1531
|
-
max: 2,
|
|
1532
|
-
default: 0.7,
|
|
1533
|
-
description: "Controls randomness"
|
|
1534
|
-
},
|
|
1535
|
-
max_tokens: {
|
|
1536
|
-
type: "number",
|
|
1537
|
-
min: 1,
|
|
1538
|
-
default: 4096,
|
|
1539
|
-
description: "Maximum output tokens"
|
|
1540
|
-
},
|
|
1541
|
-
top_p: {
|
|
1542
|
-
type: "number",
|
|
1543
|
-
min: 0,
|
|
1544
|
-
max: 1,
|
|
1545
|
-
default: 1,
|
|
1546
|
-
description: "Nucleus sampling"
|
|
1547
|
-
},
|
|
1548
|
-
top_k: {
|
|
1549
|
-
type: "number",
|
|
1550
|
-
min: 0,
|
|
1551
|
-
default: 40,
|
|
1552
|
-
description: "Top-K sampling"
|
|
1553
|
-
},
|
|
1554
|
-
frequency_penalty: {
|
|
1555
|
-
type: "number",
|
|
1556
|
-
min: -2,
|
|
1557
|
-
max: 2,
|
|
1558
|
-
default: 0,
|
|
1559
|
-
description: "Penalize frequent tokens"
|
|
1560
|
-
},
|
|
1561
|
-
presence_penalty: {
|
|
1562
|
-
type: "number",
|
|
1563
|
-
min: -2,
|
|
1564
|
-
max: 2,
|
|
1565
|
-
default: 0,
|
|
1566
|
-
description: "Penalize repeated topics"
|
|
1567
|
-
},
|
|
1568
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1569
|
-
n: { type: "number", min: 1, default: 1, description: "Candidate count" },
|
|
1570
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1571
|
-
seed: { type: "number", default: "", description: "Random seed" }
|
|
1572
|
-
},
|
|
1573
|
-
"google-vertex": GOOGLE_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1574
|
-
mistral: {
|
|
1575
|
-
temperature: {
|
|
1576
|
-
type: "number",
|
|
1577
|
-
min: 0,
|
|
1578
|
-
max: 1,
|
|
1579
|
-
default: 0.7,
|
|
1580
|
-
description: "Controls randomness"
|
|
1581
|
-
},
|
|
1582
|
-
max_tokens: {
|
|
1583
|
-
type: "number",
|
|
1584
|
-
min: 1,
|
|
1585
|
-
default: 4096,
|
|
1586
|
-
description: "Maximum output tokens"
|
|
1587
|
-
},
|
|
1588
|
-
top_p: {
|
|
1589
|
-
type: "number",
|
|
1590
|
-
min: 0,
|
|
1591
|
-
max: 1,
|
|
1592
|
-
default: 1,
|
|
1593
|
-
description: "Nucleus sampling"
|
|
1594
|
-
},
|
|
1595
|
-
frequency_penalty: {
|
|
1596
|
-
type: "number",
|
|
1597
|
-
min: -2,
|
|
1598
|
-
max: 2,
|
|
1599
|
-
default: 0,
|
|
1600
|
-
description: "Penalize frequent tokens"
|
|
1601
|
-
},
|
|
1602
|
-
presence_penalty: {
|
|
1603
|
-
type: "number",
|
|
1604
|
-
min: -2,
|
|
1605
|
-
max: 2,
|
|
1606
|
-
default: 0,
|
|
1607
|
-
description: "Penalize repeated topics"
|
|
1608
|
-
},
|
|
1609
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1610
|
-
n: { type: "number", min: 1, default: 1, description: "Completions count" },
|
|
1611
|
-
seed: { type: "number", default: "", description: "Random seed" },
|
|
1612
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1613
|
-
safe_prompt: {
|
|
1614
|
-
type: "boolean",
|
|
1615
|
-
default: false,
|
|
1616
|
-
description: "Enable safe prompt"
|
|
1617
|
-
},
|
|
1618
|
-
min_tokens: {
|
|
1619
|
-
type: "number",
|
|
1620
|
-
min: 0,
|
|
1621
|
-
default: 0,
|
|
1622
|
-
description: "Minimum tokens"
|
|
1623
|
-
}
|
|
1624
|
-
},
|
|
1625
|
-
cohere: {
|
|
1626
|
-
temperature: {
|
|
1627
|
-
type: "number",
|
|
1628
|
-
min: 0,
|
|
1629
|
-
max: 1,
|
|
1630
|
-
default: 0.7,
|
|
1631
|
-
description: "Controls randomness"
|
|
1632
|
-
},
|
|
1633
|
-
max_tokens: {
|
|
1634
|
-
type: "number",
|
|
1635
|
-
min: 1,
|
|
1636
|
-
default: 4096,
|
|
1637
|
-
description: "Maximum output tokens"
|
|
1638
|
-
},
|
|
1639
|
-
top_p: {
|
|
1640
|
-
type: "number",
|
|
1641
|
-
min: 0,
|
|
1642
|
-
max: 1,
|
|
1643
|
-
default: 1,
|
|
1644
|
-
description: "Nucleus sampling (p)"
|
|
1645
|
-
},
|
|
1646
|
-
top_k: {
|
|
1647
|
-
type: "number",
|
|
1648
|
-
min: 0,
|
|
1649
|
-
max: 500,
|
|
1650
|
-
default: 40,
|
|
1651
|
-
description: "Top-K sampling (k)"
|
|
1652
|
-
},
|
|
1653
|
-
frequency_penalty: {
|
|
1654
|
-
type: "number",
|
|
1655
|
-
min: 0,
|
|
1656
|
-
max: 1,
|
|
1657
|
-
default: 0,
|
|
1658
|
-
description: "Penalize frequent tokens"
|
|
1659
|
-
},
|
|
1660
|
-
presence_penalty: {
|
|
1661
|
-
type: "number",
|
|
1662
|
-
min: 0,
|
|
1663
|
-
max: 1,
|
|
1664
|
-
default: 0,
|
|
1665
|
-
description: "Penalize repeated topics"
|
|
1666
|
-
},
|
|
1667
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1668
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1669
|
-
seed: { type: "number", default: "", description: "Random seed" }
|
|
1670
|
-
},
|
|
1671
|
-
bedrock: {
|
|
1672
|
-
temperature: {
|
|
1673
|
-
type: "number",
|
|
1674
|
-
min: 0,
|
|
1675
|
-
max: 1,
|
|
1676
|
-
default: 0.7,
|
|
1677
|
-
description: "Controls randomness"
|
|
1678
|
-
},
|
|
1679
|
-
max_tokens: {
|
|
1680
|
-
type: "number",
|
|
1681
|
-
min: 1,
|
|
1682
|
-
default: 4096,
|
|
1683
|
-
description: "Maximum output tokens"
|
|
1684
|
-
},
|
|
1685
|
-
top_p: {
|
|
1686
|
-
type: "number",
|
|
1687
|
-
min: 0,
|
|
1688
|
-
max: 1,
|
|
1689
|
-
default: 1,
|
|
1690
|
-
description: "Nucleus sampling"
|
|
1691
|
-
},
|
|
1692
|
-
top_k: {
|
|
1693
|
-
type: "number",
|
|
1694
|
-
min: 0,
|
|
1695
|
-
default: 40,
|
|
1696
|
-
description: "Top-K sampling"
|
|
1697
|
-
},
|
|
1698
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1699
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1700
|
-
cache: {
|
|
1701
|
-
type: "enum",
|
|
1702
|
-
values: ["ephemeral"],
|
|
1703
|
-
default: "ephemeral",
|
|
1704
|
-
description: "Cache control"
|
|
1705
|
-
},
|
|
1706
|
-
cache_ttl: {
|
|
1707
|
-
type: "enum",
|
|
1708
|
-
values: ["5m", "1h"],
|
|
1709
|
-
default: "5m",
|
|
1710
|
-
description: "Cache TTL"
|
|
1711
|
-
}
|
|
1712
|
-
},
|
|
1713
|
-
openrouter: {
|
|
1714
|
-
temperature: {
|
|
1715
|
-
type: "number",
|
|
1716
|
-
min: 0,
|
|
1717
|
-
max: 2,
|
|
1718
|
-
default: 0.7,
|
|
1719
|
-
description: "Controls randomness"
|
|
1720
|
-
},
|
|
1721
|
-
max_tokens: {
|
|
1722
|
-
type: "number",
|
|
1723
|
-
min: 1,
|
|
1724
|
-
default: 4096,
|
|
1725
|
-
description: "Maximum output tokens"
|
|
1726
|
-
},
|
|
1727
|
-
top_p: {
|
|
1728
|
-
type: "number",
|
|
1729
|
-
min: 0,
|
|
1730
|
-
max: 1,
|
|
1731
|
-
default: 1,
|
|
1732
|
-
description: "Nucleus sampling"
|
|
1733
|
-
},
|
|
1734
|
-
top_k: {
|
|
1735
|
-
type: "number",
|
|
1736
|
-
min: 0,
|
|
1737
|
-
default: 40,
|
|
1738
|
-
description: "Top-K sampling"
|
|
1739
|
-
},
|
|
1740
|
-
frequency_penalty: {
|
|
1741
|
-
type: "number",
|
|
1742
|
-
min: -2,
|
|
1743
|
-
max: 2,
|
|
1744
|
-
default: 0,
|
|
1745
|
-
description: "Penalize frequent tokens"
|
|
1746
|
-
},
|
|
1747
|
-
presence_penalty: {
|
|
1748
|
-
type: "number",
|
|
1749
|
-
min: -2,
|
|
1750
|
-
max: 2,
|
|
1751
|
-
default: 0,
|
|
1752
|
-
description: "Penalize repeated topics"
|
|
1753
|
-
},
|
|
1754
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1755
|
-
n: { type: "number", min: 1, default: 1, description: "Completions count" },
|
|
1756
|
-
seed: { type: "number", default: "", description: "Random seed" },
|
|
1757
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1758
|
-
effort: {
|
|
1759
|
-
type: "enum",
|
|
1760
|
-
values: ["none", "minimal", "low", "medium", "high", "xhigh"],
|
|
1761
|
-
default: "medium",
|
|
1762
|
-
description: "Reasoning effort"
|
|
1763
|
-
}
|
|
1764
|
-
},
|
|
1765
|
-
vercel: {
|
|
1766
|
-
temperature: {
|
|
1767
|
-
type: "number",
|
|
1768
|
-
min: 0,
|
|
1769
|
-
max: 2,
|
|
1770
|
-
default: 0.7,
|
|
1771
|
-
description: "Controls randomness"
|
|
1772
|
-
},
|
|
1773
|
-
max_tokens: {
|
|
1774
|
-
type: "number",
|
|
1775
|
-
min: 1,
|
|
1776
|
-
default: 4096,
|
|
1777
|
-
description: "Maximum output tokens"
|
|
1778
|
-
},
|
|
1779
|
-
top_p: {
|
|
1780
|
-
type: "number",
|
|
1781
|
-
min: 0,
|
|
1782
|
-
max: 1,
|
|
1783
|
-
default: 1,
|
|
1784
|
-
description: "Nucleus sampling"
|
|
1785
|
-
},
|
|
1786
|
-
top_k: {
|
|
1787
|
-
type: "number",
|
|
1788
|
-
min: 0,
|
|
1789
|
-
default: 40,
|
|
1790
|
-
description: "Top-K sampling"
|
|
1791
|
-
},
|
|
1792
|
-
frequency_penalty: {
|
|
1793
|
-
type: "number",
|
|
1794
|
-
min: -2,
|
|
1795
|
-
max: 2,
|
|
1796
|
-
default: 0,
|
|
1797
|
-
description: "Penalize frequent tokens"
|
|
1798
|
-
},
|
|
1799
|
-
presence_penalty: {
|
|
1800
|
-
type: "number",
|
|
1801
|
-
min: -2,
|
|
1802
|
-
max: 2,
|
|
1803
|
-
default: 0,
|
|
1804
|
-
description: "Penalize repeated topics"
|
|
1805
|
-
},
|
|
1806
|
-
stop: { type: "string", default: "", description: "Stop sequences" },
|
|
1807
|
-
n: { type: "number", min: 1, default: 1, description: "Completions count" },
|
|
1808
|
-
seed: { type: "number", default: "", description: "Random seed" },
|
|
1809
|
-
stream: { type: "boolean", default: false, description: "Stream response" },
|
|
1810
|
-
effort: {
|
|
1811
|
-
type: "enum",
|
|
1812
|
-
values: ["none", "minimal", "low", "medium", "high", "xhigh"],
|
|
1813
|
-
default: "medium",
|
|
1814
|
-
description: "Reasoning effort"
|
|
1223
|
+
function toCanonicalParamSpec(spec) {
|
|
1224
|
+
return {
|
|
1225
|
+
...spec,
|
|
1226
|
+
type: spec.values ? "enum" : spec.type,
|
|
1227
|
+
default: spec.default ?? (spec.type === "string" && !spec.values ? "" : void 0)
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
function deriveCanonicalParamSpecs() {
|
|
1231
|
+
const specs = {};
|
|
1232
|
+
for (const provider of Object.keys(PROVIDER_PARAMS)) {
|
|
1233
|
+
specs[provider] = {};
|
|
1234
|
+
for (const [canonicalName, providerName] of Object.entries(
|
|
1235
|
+
PROVIDER_PARAMS[provider]
|
|
1236
|
+
)) {
|
|
1237
|
+
const spec = PARAM_SPECS[provider][providerName];
|
|
1238
|
+
if (spec) {
|
|
1239
|
+
specs[provider][canonicalName] = toCanonicalParamSpec(spec);
|
|
1240
|
+
}
|
|
1815
1241
|
}
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
deepinfra: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1821
|
-
"black-forest-labs": {},
|
|
1822
|
-
together: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1823
|
-
fireworks: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1824
|
-
deepseek: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1825
|
-
moonshotai: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1826
|
-
perplexity: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1827
|
-
alibaba: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1828
|
-
cerebras: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1829
|
-
replicate: {},
|
|
1830
|
-
prodia: {},
|
|
1831
|
-
luma: {},
|
|
1832
|
-
bytedance: {},
|
|
1833
|
-
kling: {},
|
|
1834
|
-
elevenlabs: {},
|
|
1835
|
-
assemblyai: {},
|
|
1836
|
-
deepgram: {},
|
|
1837
|
-
gladia: {},
|
|
1838
|
-
lmnt: {},
|
|
1839
|
-
hume: {},
|
|
1840
|
-
revai: {},
|
|
1841
|
-
baseten: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS,
|
|
1842
|
-
huggingface: OPENAI_COMPATIBLE_CANONICAL_PARAM_SPECS
|
|
1843
|
-
};
|
|
1242
|
+
}
|
|
1243
|
+
return specs;
|
|
1244
|
+
}
|
|
1245
|
+
var CANONICAL_PARAM_SPECS = deriveCanonicalParamSpecs();
|
|
1844
1246
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1845
1247
|
0 && (module.exports = {
|
|
1846
1248
|
ALIASES,
|
|
@@ -1849,7 +1251,6 @@ var CANONICAL_PARAM_SPECS = {
|
|
|
1849
1251
|
CANONICAL_PARAM_SPECS,
|
|
1850
1252
|
DURATION_RE,
|
|
1851
1253
|
HOST_ALIASES,
|
|
1852
|
-
MODELS,
|
|
1853
1254
|
PARAM_SPECS,
|
|
1854
1255
|
PROVIDER_META,
|
|
1855
1256
|
PROVIDER_PARAMS,
|
|
@@ -1864,4 +1265,3 @@ var CANONICAL_PARAM_SPECS = {
|
|
|
1864
1265
|
providerFromHostAlias,
|
|
1865
1266
|
resolveHostAlias
|
|
1866
1267
|
});
|
|
1867
|
-
//# sourceMappingURL=providers.cjs.map
|
package/dist/providers.d.cts
CHANGED
|
@@ -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,
|
|
29
|
+
export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, PROVIDER_META, Provider, type ProviderMeta };
|
package/dist/providers.d.ts
CHANGED
|
@@ -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,
|
|
29
|
+
export { CANONICAL_PARAM_SPECS, type CanonicalParamSpec, PROVIDER_META, Provider, type ProviderMeta };
|