modelparams 0.0.36__tar.gz → 0.0.37__tar.gz
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.
- {modelparams-0.0.36 → modelparams-0.0.37}/PKG-INFO +1 -1
- {modelparams-0.0.36 → modelparams-0.0.37}/pyproject.toml +1 -1
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/_generated/catalog.json +399 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/_generated/model_ids.py +12 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/_generated/registry.py +6 -0
- modelparams-0.0.37/src/modelparams/types/__init__.py +4 -0
- modelparams-0.0.37/src/modelparams/types/bedrock.py +88 -0
- modelparams-0.0.36/src/modelparams/types/__init__.py +0 -4
- {modelparams-0.0.36 → modelparams-0.0.37}/.gitignore +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/LICENSE +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/README.md +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/models.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/alibaba.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/fireworks.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/mistral.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/openai.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/xai.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.36 → modelparams-0.0.37}/src/modelparams/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: modelparams
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.37
|
|
4
4
|
Summary: Typed model parameters for Python, generated from the modelparams.dev catalog.
|
|
5
5
|
Project-URL: Homepage, https://modelparams.dev
|
|
6
6
|
Project-URL: Repository, https://github.com/mnfst/modelparameters.dev
|
|
@@ -7202,6 +7202,405 @@
|
|
|
7202
7202
|
}
|
|
7203
7203
|
]
|
|
7204
7204
|
},
|
|
7205
|
+
{
|
|
7206
|
+
"provider": "bedrock",
|
|
7207
|
+
"authType": "api_key",
|
|
7208
|
+
"model": "claude-haiku-4-5",
|
|
7209
|
+
"requestModel": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
7210
|
+
"params": [
|
|
7211
|
+
{
|
|
7212
|
+
"path": "inferenceConfig.maxTokens",
|
|
7213
|
+
"label": "Max tokens",
|
|
7214
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
7215
|
+
"group": "generation_length",
|
|
7216
|
+
"type": "integer",
|
|
7217
|
+
"range": {
|
|
7218
|
+
"min": 1
|
|
7219
|
+
}
|
|
7220
|
+
},
|
|
7221
|
+
{
|
|
7222
|
+
"path": "inferenceConfig.temperature",
|
|
7223
|
+
"label": "Temperature",
|
|
7224
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied. Bedrock rejects values above 1, and the model requires 1 when thinking is enabled.",
|
|
7225
|
+
"group": "sampling",
|
|
7226
|
+
"applicability": {
|
|
7227
|
+
"except": {
|
|
7228
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7229
|
+
}
|
|
7230
|
+
},
|
|
7231
|
+
"type": "number",
|
|
7232
|
+
"default": 1,
|
|
7233
|
+
"range": {
|
|
7234
|
+
"min": 0,
|
|
7235
|
+
"max": 1,
|
|
7236
|
+
"step": 0.1
|
|
7237
|
+
}
|
|
7238
|
+
},
|
|
7239
|
+
{
|
|
7240
|
+
"path": "inferenceConfig.topP",
|
|
7241
|
+
"label": "Top P",
|
|
7242
|
+
"description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value. Must be at least 0.95 or unset when thinking is enabled.",
|
|
7243
|
+
"group": "sampling",
|
|
7244
|
+
"applicability": {
|
|
7245
|
+
"except": [
|
|
7246
|
+
{
|
|
7247
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"inferenceConfig.temperature": {
|
|
7251
|
+
"not": 1
|
|
7252
|
+
}
|
|
7253
|
+
}
|
|
7254
|
+
]
|
|
7255
|
+
},
|
|
7256
|
+
"type": "number",
|
|
7257
|
+
"default": 1,
|
|
7258
|
+
"range": {
|
|
7259
|
+
"min": 0,
|
|
7260
|
+
"max": 1,
|
|
7261
|
+
"step": 0.01
|
|
7262
|
+
}
|
|
7263
|
+
},
|
|
7264
|
+
{
|
|
7265
|
+
"path": "inferenceConfig.stopSequences",
|
|
7266
|
+
"label": "Stop sequences",
|
|
7267
|
+
"description": "A list of strings where the model stops generating further tokens.",
|
|
7268
|
+
"group": "generation_length",
|
|
7269
|
+
"type": "string"
|
|
7270
|
+
},
|
|
7271
|
+
{
|
|
7272
|
+
"path": "additionalModelRequestFields.top_k",
|
|
7273
|
+
"label": "Top K",
|
|
7274
|
+
"description": "Limits token sampling to the top K most likely next tokens.",
|
|
7275
|
+
"group": "sampling",
|
|
7276
|
+
"applicability": {
|
|
7277
|
+
"except": {
|
|
7278
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7279
|
+
}
|
|
7280
|
+
},
|
|
7281
|
+
"type": "integer",
|
|
7282
|
+
"default": 0,
|
|
7283
|
+
"range": {
|
|
7284
|
+
"min": 0
|
|
7285
|
+
}
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"path": "additionalModelRequestFields.thinking.type",
|
|
7289
|
+
"label": "Thinking mode",
|
|
7290
|
+
"description": "Controls Anthropic extended thinking on Bedrock for this model.",
|
|
7291
|
+
"group": "reasoning",
|
|
7292
|
+
"type": "enum",
|
|
7293
|
+
"default": "disabled",
|
|
7294
|
+
"values": [
|
|
7295
|
+
"disabled",
|
|
7296
|
+
"enabled"
|
|
7297
|
+
]
|
|
7298
|
+
},
|
|
7299
|
+
{
|
|
7300
|
+
"path": "additionalModelRequestFields.thinking.budget_tokens",
|
|
7301
|
+
"label": "Budget tokens",
|
|
7302
|
+
"description": "Maximum token budget the model may use for extended thinking before producing the final answer. Must be less than inferenceConfig.maxTokens.",
|
|
7303
|
+
"group": "reasoning",
|
|
7304
|
+
"applicability": {
|
|
7305
|
+
"only": {
|
|
7306
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7307
|
+
}
|
|
7308
|
+
},
|
|
7309
|
+
"type": "integer",
|
|
7310
|
+
"range": {
|
|
7311
|
+
"min": 1024
|
|
7312
|
+
}
|
|
7313
|
+
}
|
|
7314
|
+
]
|
|
7315
|
+
},
|
|
7316
|
+
{
|
|
7317
|
+
"provider": "bedrock",
|
|
7318
|
+
"authType": "api_key",
|
|
7319
|
+
"model": "claude-sonnet-4-5",
|
|
7320
|
+
"requestModel": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
7321
|
+
"params": [
|
|
7322
|
+
{
|
|
7323
|
+
"path": "inferenceConfig.maxTokens",
|
|
7324
|
+
"label": "Max tokens",
|
|
7325
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
7326
|
+
"group": "generation_length",
|
|
7327
|
+
"type": "integer",
|
|
7328
|
+
"range": {
|
|
7329
|
+
"min": 1
|
|
7330
|
+
}
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"path": "inferenceConfig.temperature",
|
|
7334
|
+
"label": "Temperature",
|
|
7335
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied. Bedrock rejects values above 1, and the model requires 1 when thinking is enabled.",
|
|
7336
|
+
"group": "sampling",
|
|
7337
|
+
"applicability": {
|
|
7338
|
+
"except": {
|
|
7339
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7340
|
+
}
|
|
7341
|
+
},
|
|
7342
|
+
"type": "number",
|
|
7343
|
+
"default": 1,
|
|
7344
|
+
"range": {
|
|
7345
|
+
"min": 0,
|
|
7346
|
+
"max": 1,
|
|
7347
|
+
"step": 0.1
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
{
|
|
7351
|
+
"path": "inferenceConfig.topP",
|
|
7352
|
+
"label": "Top P",
|
|
7353
|
+
"description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value. Must be at least 0.95 or unset when thinking is enabled.",
|
|
7354
|
+
"group": "sampling",
|
|
7355
|
+
"applicability": {
|
|
7356
|
+
"except": [
|
|
7357
|
+
{
|
|
7358
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7359
|
+
},
|
|
7360
|
+
{
|
|
7361
|
+
"inferenceConfig.temperature": {
|
|
7362
|
+
"not": 1
|
|
7363
|
+
}
|
|
7364
|
+
}
|
|
7365
|
+
]
|
|
7366
|
+
},
|
|
7367
|
+
"type": "number",
|
|
7368
|
+
"default": 1,
|
|
7369
|
+
"range": {
|
|
7370
|
+
"min": 0,
|
|
7371
|
+
"max": 1,
|
|
7372
|
+
"step": 0.01
|
|
7373
|
+
}
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
"path": "inferenceConfig.stopSequences",
|
|
7377
|
+
"label": "Stop sequences",
|
|
7378
|
+
"description": "A list of strings where the model stops generating further tokens.",
|
|
7379
|
+
"group": "generation_length",
|
|
7380
|
+
"type": "string"
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"path": "additionalModelRequestFields.top_k",
|
|
7384
|
+
"label": "Top K",
|
|
7385
|
+
"description": "Limits token sampling to the top K most likely next tokens.",
|
|
7386
|
+
"group": "sampling",
|
|
7387
|
+
"applicability": {
|
|
7388
|
+
"except": {
|
|
7389
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7390
|
+
}
|
|
7391
|
+
},
|
|
7392
|
+
"type": "integer",
|
|
7393
|
+
"default": 0,
|
|
7394
|
+
"range": {
|
|
7395
|
+
"min": 0
|
|
7396
|
+
}
|
|
7397
|
+
},
|
|
7398
|
+
{
|
|
7399
|
+
"path": "additionalModelRequestFields.thinking.type",
|
|
7400
|
+
"label": "Thinking mode",
|
|
7401
|
+
"description": "Controls Anthropic extended thinking on Bedrock. Unlike the first-party Anthropic API, the adaptive mode is rejected on Bedrock for this model.",
|
|
7402
|
+
"group": "reasoning",
|
|
7403
|
+
"type": "enum",
|
|
7404
|
+
"default": "disabled",
|
|
7405
|
+
"values": [
|
|
7406
|
+
"disabled",
|
|
7407
|
+
"enabled"
|
|
7408
|
+
]
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
"path": "additionalModelRequestFields.thinking.budget_tokens",
|
|
7412
|
+
"label": "Budget tokens",
|
|
7413
|
+
"description": "Maximum token budget the model may use for extended thinking before producing the final answer. Must be less than inferenceConfig.maxTokens.",
|
|
7414
|
+
"group": "reasoning",
|
|
7415
|
+
"applicability": {
|
|
7416
|
+
"only": {
|
|
7417
|
+
"additionalModelRequestFields.thinking.type": "enabled"
|
|
7418
|
+
}
|
|
7419
|
+
},
|
|
7420
|
+
"type": "integer",
|
|
7421
|
+
"range": {
|
|
7422
|
+
"min": 1024
|
|
7423
|
+
}
|
|
7424
|
+
}
|
|
7425
|
+
]
|
|
7426
|
+
},
|
|
7427
|
+
{
|
|
7428
|
+
"provider": "bedrock",
|
|
7429
|
+
"authType": "api_key",
|
|
7430
|
+
"model": "nova-lite",
|
|
7431
|
+
"requestModel": "amazon.nova-lite-v1:0",
|
|
7432
|
+
"params": [
|
|
7433
|
+
{
|
|
7434
|
+
"path": "inferenceConfig.maxTokens",
|
|
7435
|
+
"label": "Max tokens",
|
|
7436
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
7437
|
+
"group": "generation_length",
|
|
7438
|
+
"type": "integer",
|
|
7439
|
+
"range": {
|
|
7440
|
+
"min": 1
|
|
7441
|
+
}
|
|
7442
|
+
},
|
|
7443
|
+
{
|
|
7444
|
+
"path": "inferenceConfig.temperature",
|
|
7445
|
+
"label": "Temperature",
|
|
7446
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied. Bedrock rejects values above 1 for this model.",
|
|
7447
|
+
"group": "sampling",
|
|
7448
|
+
"type": "number",
|
|
7449
|
+
"range": {
|
|
7450
|
+
"min": 0,
|
|
7451
|
+
"max": 1,
|
|
7452
|
+
"step": 0.1
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
{
|
|
7456
|
+
"path": "inferenceConfig.topP",
|
|
7457
|
+
"label": "Top P",
|
|
7458
|
+
"description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
|
|
7459
|
+
"group": "sampling",
|
|
7460
|
+
"type": "number",
|
|
7461
|
+
"range": {
|
|
7462
|
+
"min": 0,
|
|
7463
|
+
"max": 1,
|
|
7464
|
+
"step": 0.01
|
|
7465
|
+
}
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
"path": "inferenceConfig.stopSequences",
|
|
7469
|
+
"label": "Stop sequences",
|
|
7470
|
+
"description": "A list of strings where the model stops generating further tokens.",
|
|
7471
|
+
"group": "generation_length",
|
|
7472
|
+
"type": "string"
|
|
7473
|
+
},
|
|
7474
|
+
{
|
|
7475
|
+
"path": "additionalModelRequestFields.inferenceConfig.topK",
|
|
7476
|
+
"label": "Top K",
|
|
7477
|
+
"description": "Limits token sampling to the top K most likely next tokens. Nova takes this through additionalModelRequestFields, not the Converse inferenceConfig block, and silently ignores unknown keys placed in inferenceConfig.",
|
|
7478
|
+
"group": "sampling",
|
|
7479
|
+
"type": "integer",
|
|
7480
|
+
"range": {
|
|
7481
|
+
"min": 1
|
|
7482
|
+
}
|
|
7483
|
+
}
|
|
7484
|
+
]
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"provider": "bedrock",
|
|
7488
|
+
"authType": "api_key",
|
|
7489
|
+
"model": "nova-micro",
|
|
7490
|
+
"requestModel": "amazon.nova-micro-v1:0",
|
|
7491
|
+
"params": [
|
|
7492
|
+
{
|
|
7493
|
+
"path": "inferenceConfig.maxTokens",
|
|
7494
|
+
"label": "Max tokens",
|
|
7495
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
7496
|
+
"group": "generation_length",
|
|
7497
|
+
"type": "integer",
|
|
7498
|
+
"range": {
|
|
7499
|
+
"min": 1
|
|
7500
|
+
}
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
"path": "inferenceConfig.temperature",
|
|
7504
|
+
"label": "Temperature",
|
|
7505
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied. Bedrock rejects values above 1 for this model.",
|
|
7506
|
+
"group": "sampling",
|
|
7507
|
+
"type": "number",
|
|
7508
|
+
"range": {
|
|
7509
|
+
"min": 0,
|
|
7510
|
+
"max": 1,
|
|
7511
|
+
"step": 0.1
|
|
7512
|
+
}
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
"path": "inferenceConfig.topP",
|
|
7516
|
+
"label": "Top P",
|
|
7517
|
+
"description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
|
|
7518
|
+
"group": "sampling",
|
|
7519
|
+
"type": "number",
|
|
7520
|
+
"range": {
|
|
7521
|
+
"min": 0,
|
|
7522
|
+
"max": 1,
|
|
7523
|
+
"step": 0.01
|
|
7524
|
+
}
|
|
7525
|
+
},
|
|
7526
|
+
{
|
|
7527
|
+
"path": "inferenceConfig.stopSequences",
|
|
7528
|
+
"label": "Stop sequences",
|
|
7529
|
+
"description": "A list of strings where the model stops generating further tokens.",
|
|
7530
|
+
"group": "generation_length",
|
|
7531
|
+
"type": "string"
|
|
7532
|
+
},
|
|
7533
|
+
{
|
|
7534
|
+
"path": "additionalModelRequestFields.inferenceConfig.topK",
|
|
7535
|
+
"label": "Top K",
|
|
7536
|
+
"description": "Limits token sampling to the top K most likely next tokens. Nova takes this through additionalModelRequestFields, not the Converse inferenceConfig block, and silently ignores unknown keys placed in inferenceConfig.",
|
|
7537
|
+
"group": "sampling",
|
|
7538
|
+
"type": "integer",
|
|
7539
|
+
"range": {
|
|
7540
|
+
"min": 1
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
]
|
|
7544
|
+
},
|
|
7545
|
+
{
|
|
7546
|
+
"provider": "bedrock",
|
|
7547
|
+
"authType": "api_key",
|
|
7548
|
+
"model": "nova-pro",
|
|
7549
|
+
"requestModel": "amazon.nova-pro-v1:0",
|
|
7550
|
+
"params": [
|
|
7551
|
+
{
|
|
7552
|
+
"path": "inferenceConfig.maxTokens",
|
|
7553
|
+
"label": "Max tokens",
|
|
7554
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
7555
|
+
"group": "generation_length",
|
|
7556
|
+
"type": "integer",
|
|
7557
|
+
"range": {
|
|
7558
|
+
"min": 1
|
|
7559
|
+
}
|
|
7560
|
+
},
|
|
7561
|
+
{
|
|
7562
|
+
"path": "inferenceConfig.temperature",
|
|
7563
|
+
"label": "Temperature",
|
|
7564
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied. Bedrock rejects values above 1 for this model.",
|
|
7565
|
+
"group": "sampling",
|
|
7566
|
+
"type": "number",
|
|
7567
|
+
"range": {
|
|
7568
|
+
"min": 0,
|
|
7569
|
+
"max": 1,
|
|
7570
|
+
"step": 0.1
|
|
7571
|
+
}
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
"path": "inferenceConfig.topP",
|
|
7575
|
+
"label": "Top P",
|
|
7576
|
+
"description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
|
|
7577
|
+
"group": "sampling",
|
|
7578
|
+
"type": "number",
|
|
7579
|
+
"range": {
|
|
7580
|
+
"min": 0,
|
|
7581
|
+
"max": 1,
|
|
7582
|
+
"step": 0.01
|
|
7583
|
+
}
|
|
7584
|
+
},
|
|
7585
|
+
{
|
|
7586
|
+
"path": "inferenceConfig.stopSequences",
|
|
7587
|
+
"label": "Stop sequences",
|
|
7588
|
+
"description": "A list of strings where the model stops generating further tokens.",
|
|
7589
|
+
"group": "generation_length",
|
|
7590
|
+
"type": "string"
|
|
7591
|
+
},
|
|
7592
|
+
{
|
|
7593
|
+
"path": "additionalModelRequestFields.inferenceConfig.topK",
|
|
7594
|
+
"label": "Top K",
|
|
7595
|
+
"description": "Limits token sampling to the top K most likely next tokens. Nova takes this through additionalModelRequestFields, not the Converse inferenceConfig block, and silently ignores unknown keys placed in inferenceConfig.",
|
|
7596
|
+
"group": "sampling",
|
|
7597
|
+
"type": "integer",
|
|
7598
|
+
"range": {
|
|
7599
|
+
"min": 1
|
|
7600
|
+
}
|
|
7601
|
+
}
|
|
7602
|
+
]
|
|
7603
|
+
},
|
|
7205
7604
|
{
|
|
7206
7605
|
"provider": "cerebras",
|
|
7207
7606
|
"authType": "api_key",
|
|
@@ -87,6 +87,11 @@ ModelId = Literal[
|
|
|
87
87
|
"anthropic/claude-sonnet-4-subscription",
|
|
88
88
|
"anthropic/claude-sonnet-5",
|
|
89
89
|
"anthropic/claude-sonnet-5-subscription",
|
|
90
|
+
"bedrock/claude-haiku-4-5",
|
|
91
|
+
"bedrock/claude-sonnet-4-5",
|
|
92
|
+
"bedrock/nova-lite",
|
|
93
|
+
"bedrock/nova-micro",
|
|
94
|
+
"bedrock/nova-pro",
|
|
90
95
|
"cerebras/zai-glm-4.7",
|
|
91
96
|
"cohere/command-a-03-2025",
|
|
92
97
|
"cohere/command-a-plus-05-2026",
|
|
@@ -405,6 +410,11 @@ MODEL_IDS: tuple[ModelId, ...] = (
|
|
|
405
410
|
"anthropic/claude-sonnet-4-subscription",
|
|
406
411
|
"anthropic/claude-sonnet-5",
|
|
407
412
|
"anthropic/claude-sonnet-5-subscription",
|
|
413
|
+
"bedrock/claude-haiku-4-5",
|
|
414
|
+
"bedrock/claude-sonnet-4-5",
|
|
415
|
+
"bedrock/nova-lite",
|
|
416
|
+
"bedrock/nova-micro",
|
|
417
|
+
"bedrock/nova-pro",
|
|
408
418
|
"cerebras/zai-glm-4.7",
|
|
409
419
|
"cohere/command-a-03-2025",
|
|
410
420
|
"cohere/command-a-plus-05-2026",
|
|
@@ -642,6 +652,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
|
|
|
642
652
|
Provider = Literal[
|
|
643
653
|
"alibaba",
|
|
644
654
|
"anthropic",
|
|
655
|
+
"bedrock",
|
|
645
656
|
"cerebras",
|
|
646
657
|
"cohere",
|
|
647
658
|
"deepseek",
|
|
@@ -664,6 +675,7 @@ Provider = Literal[
|
|
|
664
675
|
PROVIDERS: tuple[Provider, ...] = (
|
|
665
676
|
"alibaba",
|
|
666
677
|
"anthropic",
|
|
678
|
+
"bedrock",
|
|
667
679
|
"cerebras",
|
|
668
680
|
"cohere",
|
|
669
681
|
"deepseek",
|
|
@@ -5,6 +5,7 @@ from typing import Any
|
|
|
5
5
|
|
|
6
6
|
from modelparams.types import alibaba
|
|
7
7
|
from modelparams.types import anthropic
|
|
8
|
+
from modelparams.types import bedrock
|
|
8
9
|
from modelparams.types import cerebras
|
|
9
10
|
from modelparams.types import cohere
|
|
10
11
|
from modelparams.types import deepseek
|
|
@@ -109,6 +110,11 @@ PARAM_TYPES: dict[ModelId, Any] = {
|
|
|
109
110
|
"anthropic/claude-sonnet-4-subscription": anthropic.Claude_Sonnet_4_SubscriptionParams,
|
|
110
111
|
"anthropic/claude-sonnet-5": anthropic.Claude_Sonnet_5Params,
|
|
111
112
|
"anthropic/claude-sonnet-5-subscription": anthropic.Claude_Sonnet_5_SubscriptionParams,
|
|
113
|
+
"bedrock/claude-haiku-4-5": bedrock.Claude_Haiku_4_5Params,
|
|
114
|
+
"bedrock/claude-sonnet-4-5": bedrock.Claude_Sonnet_4_5Params,
|
|
115
|
+
"bedrock/nova-lite": bedrock.Nova_LiteParams,
|
|
116
|
+
"bedrock/nova-micro": bedrock.Nova_MicroParams,
|
|
117
|
+
"bedrock/nova-pro": bedrock.Nova_ProParams,
|
|
112
118
|
"cerebras/zai-glm-4.7": cerebras.Zai_Glm_4_7Params,
|
|
113
119
|
"cohere/command-a-03-2025": cohere.Command_A_03_2025Params,
|
|
114
120
|
"cohere/command-a-plus-05-2026": cohere.Command_A_Plus_05_2026Params,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
|
|
2
|
+
# Do not edit by hand; the YAML catalog under /models is the source of truth.
|
|
3
|
+
|
|
4
|
+
__all__ = ["alibaba", "anthropic", "bedrock", "cerebras", "cohere", "deepseek", "fireworks", "google", "groq", "meta", "minimax", "mistral", "moonshot", "nvidia", "openai", "perplexity", "thinking_machines", "xai", "xiaomi", "z_ai"]
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
|
|
2
|
+
# Do not edit by hand; the YAML catalog under /models is the source of truth.
|
|
3
|
+
|
|
4
|
+
# ruff: noqa: F401
|
|
5
|
+
|
|
6
|
+
from typing import Annotated, Literal
|
|
7
|
+
|
|
8
|
+
from pydantic import ConfigDict, Field
|
|
9
|
+
from typing_extensions import TypedDict
|
|
10
|
+
|
|
11
|
+
_PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
|
|
12
|
+
|
|
13
|
+
Claude_Haiku_4_5Params = TypedDict(
|
|
14
|
+
"Claude_Haiku_4_5Params",
|
|
15
|
+
{
|
|
16
|
+
"inferenceConfig.maxTokens": Annotated[int, Field(ge=1)],
|
|
17
|
+
"inferenceConfig.temperature": Annotated[float, Field(ge=0, le=1)],
|
|
18
|
+
"inferenceConfig.topP": Annotated[float, Field(ge=0, le=1)],
|
|
19
|
+
"inferenceConfig.stopSequences": str,
|
|
20
|
+
"additionalModelRequestFields.top_k": Annotated[int, Field(ge=0)],
|
|
21
|
+
"additionalModelRequestFields.thinking.type": Literal["disabled", "enabled"],
|
|
22
|
+
"additionalModelRequestFields.thinking.budget_tokens": Annotated[int, Field(ge=1024)],
|
|
23
|
+
},
|
|
24
|
+
total=False,
|
|
25
|
+
)
|
|
26
|
+
setattr(Claude_Haiku_4_5Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
27
|
+
|
|
28
|
+
Claude_Sonnet_4_5Params = TypedDict(
|
|
29
|
+
"Claude_Sonnet_4_5Params",
|
|
30
|
+
{
|
|
31
|
+
"inferenceConfig.maxTokens": Annotated[int, Field(ge=1)],
|
|
32
|
+
"inferenceConfig.temperature": Annotated[float, Field(ge=0, le=1)],
|
|
33
|
+
"inferenceConfig.topP": Annotated[float, Field(ge=0, le=1)],
|
|
34
|
+
"inferenceConfig.stopSequences": str,
|
|
35
|
+
"additionalModelRequestFields.top_k": Annotated[int, Field(ge=0)],
|
|
36
|
+
"additionalModelRequestFields.thinking.type": Literal["disabled", "enabled"],
|
|
37
|
+
"additionalModelRequestFields.thinking.budget_tokens": Annotated[int, Field(ge=1024)],
|
|
38
|
+
},
|
|
39
|
+
total=False,
|
|
40
|
+
)
|
|
41
|
+
setattr(Claude_Sonnet_4_5Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
42
|
+
|
|
43
|
+
Nova_LiteParams = TypedDict(
|
|
44
|
+
"Nova_LiteParams",
|
|
45
|
+
{
|
|
46
|
+
"inferenceConfig.maxTokens": Annotated[int, Field(ge=1)],
|
|
47
|
+
"inferenceConfig.temperature": Annotated[float, Field(ge=0, le=1)],
|
|
48
|
+
"inferenceConfig.topP": Annotated[float, Field(ge=0, le=1)],
|
|
49
|
+
"inferenceConfig.stopSequences": str,
|
|
50
|
+
"additionalModelRequestFields.inferenceConfig.topK": Annotated[int, Field(ge=1)],
|
|
51
|
+
},
|
|
52
|
+
total=False,
|
|
53
|
+
)
|
|
54
|
+
setattr(Nova_LiteParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
55
|
+
|
|
56
|
+
Nova_MicroParams = TypedDict(
|
|
57
|
+
"Nova_MicroParams",
|
|
58
|
+
{
|
|
59
|
+
"inferenceConfig.maxTokens": Annotated[int, Field(ge=1)],
|
|
60
|
+
"inferenceConfig.temperature": Annotated[float, Field(ge=0, le=1)],
|
|
61
|
+
"inferenceConfig.topP": Annotated[float, Field(ge=0, le=1)],
|
|
62
|
+
"inferenceConfig.stopSequences": str,
|
|
63
|
+
"additionalModelRequestFields.inferenceConfig.topK": Annotated[int, Field(ge=1)],
|
|
64
|
+
},
|
|
65
|
+
total=False,
|
|
66
|
+
)
|
|
67
|
+
setattr(Nova_MicroParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
68
|
+
|
|
69
|
+
Nova_ProParams = TypedDict(
|
|
70
|
+
"Nova_ProParams",
|
|
71
|
+
{
|
|
72
|
+
"inferenceConfig.maxTokens": Annotated[int, Field(ge=1)],
|
|
73
|
+
"inferenceConfig.temperature": Annotated[float, Field(ge=0, le=1)],
|
|
74
|
+
"inferenceConfig.topP": Annotated[float, Field(ge=0, le=1)],
|
|
75
|
+
"inferenceConfig.stopSequences": str,
|
|
76
|
+
"additionalModelRequestFields.inferenceConfig.topK": Annotated[int, Field(ge=1)],
|
|
77
|
+
},
|
|
78
|
+
total=False,
|
|
79
|
+
)
|
|
80
|
+
setattr(Nova_ProParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
81
|
+
|
|
82
|
+
__all__ = [
|
|
83
|
+
"Claude_Haiku_4_5Params",
|
|
84
|
+
"Claude_Sonnet_4_5Params",
|
|
85
|
+
"Nova_LiteParams",
|
|
86
|
+
"Nova_MicroParams",
|
|
87
|
+
"Nova_ProParams",
|
|
88
|
+
]
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
# AUTO-GENERATED by packages/modelparams-python/scripts/codegen.ts.
|
|
2
|
-
# Do not edit by hand; the YAML catalog under /models is the source of truth.
|
|
3
|
-
|
|
4
|
-
__all__ = ["alibaba", "anthropic", "cerebras", "cohere", "deepseek", "fireworks", "google", "groq", "meta", "minimax", "mistral", "moonshot", "nvidia", "openai", "perplexity", "thinking_machines", "xai", "xiaomi", "z_ai"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|