modelparams 0.0.31__tar.gz → 0.0.33__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.31 → modelparams-0.0.33}/PKG-INFO +1 -1
- {modelparams-0.0.31 → modelparams-0.0.33}/pyproject.toml +1 -1
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/_generated/catalog.json +150 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/_generated/model_ids.py +4 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/_generated/registry.py +2 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/alibaba.py +30 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/.gitignore +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/LICENSE +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/README.md +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/models.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/__init__.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/mistral.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/openai.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/xai.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.31 → modelparams-0.0.33}/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.33
|
|
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
|
|
@@ -224,6 +224,81 @@
|
|
|
224
224
|
}
|
|
225
225
|
]
|
|
226
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"provider": "alibaba",
|
|
229
|
+
"authType": "api_key",
|
|
230
|
+
"model": "deepseek-v4-pro",
|
|
231
|
+
"params": [
|
|
232
|
+
{
|
|
233
|
+
"path": "max_completion_tokens",
|
|
234
|
+
"label": "Max tokens",
|
|
235
|
+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
|
|
236
|
+
"group": "generation_length",
|
|
237
|
+
"type": "integer",
|
|
238
|
+
"range": {
|
|
239
|
+
"min": 1
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"path": "temperature",
|
|
244
|
+
"label": "Temperature",
|
|
245
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
246
|
+
"group": "sampling",
|
|
247
|
+
"type": "number",
|
|
248
|
+
"range": {
|
|
249
|
+
"min": 0,
|
|
250
|
+
"max": 1.9,
|
|
251
|
+
"step": 0.1
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"path": "top_p",
|
|
256
|
+
"label": "Top P",
|
|
257
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
258
|
+
"group": "sampling",
|
|
259
|
+
"type": "number",
|
|
260
|
+
"range": {
|
|
261
|
+
"min": 0,
|
|
262
|
+
"max": 1,
|
|
263
|
+
"step": 0.01
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"path": "extra_body.top_k",
|
|
268
|
+
"label": "Top K",
|
|
269
|
+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
|
|
270
|
+
"group": "sampling",
|
|
271
|
+
"type": "integer",
|
|
272
|
+
"default": 20,
|
|
273
|
+
"range": {
|
|
274
|
+
"min": 0
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"path": "extra_body.enable_thinking",
|
|
279
|
+
"label": "Enable thinking",
|
|
280
|
+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
|
|
281
|
+
"group": "reasoning",
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"default": true
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"path": "extra_body.thinking_budget",
|
|
287
|
+
"label": "Thinking budget",
|
|
288
|
+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
|
|
289
|
+
"group": "reasoning",
|
|
290
|
+
"applicability": {
|
|
291
|
+
"only": {
|
|
292
|
+
"extra_body.enable_thinking": true
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"type": "integer",
|
|
296
|
+
"range": {
|
|
297
|
+
"min": 1
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
227
302
|
{
|
|
228
303
|
"provider": "alibaba",
|
|
229
304
|
"authType": "api_key",
|
|
@@ -374,6 +449,81 @@
|
|
|
374
449
|
}
|
|
375
450
|
]
|
|
376
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"provider": "alibaba",
|
|
454
|
+
"authType": "api_key",
|
|
455
|
+
"model": "glm-5.2",
|
|
456
|
+
"params": [
|
|
457
|
+
{
|
|
458
|
+
"path": "max_completion_tokens",
|
|
459
|
+
"label": "Max tokens",
|
|
460
|
+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
|
|
461
|
+
"group": "generation_length",
|
|
462
|
+
"type": "integer",
|
|
463
|
+
"range": {
|
|
464
|
+
"min": 1
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"path": "temperature",
|
|
469
|
+
"label": "Temperature",
|
|
470
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
471
|
+
"group": "sampling",
|
|
472
|
+
"type": "number",
|
|
473
|
+
"range": {
|
|
474
|
+
"min": 0,
|
|
475
|
+
"max": 1.9,
|
|
476
|
+
"step": 0.1
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"path": "top_p",
|
|
481
|
+
"label": "Top P",
|
|
482
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
483
|
+
"group": "sampling",
|
|
484
|
+
"type": "number",
|
|
485
|
+
"range": {
|
|
486
|
+
"min": 0,
|
|
487
|
+
"max": 1,
|
|
488
|
+
"step": 0.01
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"path": "extra_body.top_k",
|
|
493
|
+
"label": "Top K",
|
|
494
|
+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
|
|
495
|
+
"group": "sampling",
|
|
496
|
+
"type": "integer",
|
|
497
|
+
"default": 20,
|
|
498
|
+
"range": {
|
|
499
|
+
"min": 0
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"path": "extra_body.enable_thinking",
|
|
504
|
+
"label": "Enable thinking",
|
|
505
|
+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
|
|
506
|
+
"group": "reasoning",
|
|
507
|
+
"type": "boolean",
|
|
508
|
+
"default": true
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"path": "extra_body.thinking_budget",
|
|
512
|
+
"label": "Thinking budget",
|
|
513
|
+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
|
|
514
|
+
"group": "reasoning",
|
|
515
|
+
"applicability": {
|
|
516
|
+
"only": {
|
|
517
|
+
"extra_body.enable_thinking": true
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"type": "integer",
|
|
521
|
+
"range": {
|
|
522
|
+
"min": 1
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
},
|
|
377
527
|
{
|
|
378
528
|
"provider": "alibaba",
|
|
379
529
|
"authType": "api_key",
|
|
@@ -7,8 +7,10 @@ ModelId = Literal[
|
|
|
7
7
|
"alibaba/deepseek-v3.2",
|
|
8
8
|
"alibaba/deepseek-v4-flash",
|
|
9
9
|
"alibaba/deepseek-v4-flash-0731",
|
|
10
|
+
"alibaba/deepseek-v4-pro",
|
|
10
11
|
"alibaba/deepseek-v4-pro-0813",
|
|
11
12
|
"alibaba/glm-5.1",
|
|
13
|
+
"alibaba/glm-5.2",
|
|
12
14
|
"alibaba/kimi-k2.7-code",
|
|
13
15
|
"alibaba/qwen-flash",
|
|
14
16
|
"alibaba/qwen-max",
|
|
@@ -297,8 +299,10 @@ MODEL_IDS: tuple[ModelId, ...] = (
|
|
|
297
299
|
"alibaba/deepseek-v3.2",
|
|
298
300
|
"alibaba/deepseek-v4-flash",
|
|
299
301
|
"alibaba/deepseek-v4-flash-0731",
|
|
302
|
+
"alibaba/deepseek-v4-pro",
|
|
300
303
|
"alibaba/deepseek-v4-pro-0813",
|
|
301
304
|
"alibaba/glm-5.1",
|
|
305
|
+
"alibaba/glm-5.2",
|
|
302
306
|
"alibaba/kimi-k2.7-code",
|
|
303
307
|
"alibaba/qwen-flash",
|
|
304
308
|
"alibaba/qwen-max",
|
|
@@ -28,8 +28,10 @@ PARAM_TYPES: dict[ModelId, Any] = {
|
|
|
28
28
|
"alibaba/deepseek-v3.2": alibaba.Deepseek_V3_2Params,
|
|
29
29
|
"alibaba/deepseek-v4-flash": alibaba.Deepseek_V4_FlashParams,
|
|
30
30
|
"alibaba/deepseek-v4-flash-0731": alibaba.Deepseek_V4_Flash_0731Params,
|
|
31
|
+
"alibaba/deepseek-v4-pro": alibaba.Deepseek_V4_ProParams,
|
|
31
32
|
"alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
|
|
32
33
|
"alibaba/glm-5.1": alibaba.Glm_5_1Params,
|
|
34
|
+
"alibaba/glm-5.2": alibaba.Glm_5_2Params,
|
|
33
35
|
"alibaba/kimi-k2.7-code": alibaba.Kimi_K2_7_CodeParams,
|
|
34
36
|
"alibaba/qwen-flash": alibaba.Qwen_FlashParams,
|
|
35
37
|
"alibaba/qwen-max": alibaba.Qwen_MaxParams,
|
|
@@ -52,6 +52,20 @@ Deepseek_V4_Flash_0731Params = TypedDict(
|
|
|
52
52
|
)
|
|
53
53
|
setattr(Deepseek_V4_Flash_0731Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
54
54
|
|
|
55
|
+
Deepseek_V4_ProParams = TypedDict(
|
|
56
|
+
"Deepseek_V4_ProParams",
|
|
57
|
+
{
|
|
58
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
59
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
60
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
61
|
+
"extra_body.top_k": Annotated[int, Field(ge=0)],
|
|
62
|
+
"extra_body.enable_thinking": bool,
|
|
63
|
+
"extra_body.thinking_budget": Annotated[int, Field(ge=1)],
|
|
64
|
+
},
|
|
65
|
+
total=False,
|
|
66
|
+
)
|
|
67
|
+
setattr(Deepseek_V4_ProParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
68
|
+
|
|
55
69
|
Deepseek_V4_Pro_0813Params = TypedDict(
|
|
56
70
|
"Deepseek_V4_Pro_0813Params",
|
|
57
71
|
{
|
|
@@ -80,6 +94,20 @@ Glm_5_1Params = TypedDict(
|
|
|
80
94
|
)
|
|
81
95
|
setattr(Glm_5_1Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
82
96
|
|
|
97
|
+
Glm_5_2Params = TypedDict(
|
|
98
|
+
"Glm_5_2Params",
|
|
99
|
+
{
|
|
100
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
101
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
102
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
103
|
+
"extra_body.top_k": Annotated[int, Field(ge=0)],
|
|
104
|
+
"extra_body.enable_thinking": bool,
|
|
105
|
+
"extra_body.thinking_budget": Annotated[int, Field(ge=1)],
|
|
106
|
+
},
|
|
107
|
+
total=False,
|
|
108
|
+
)
|
|
109
|
+
setattr(Glm_5_2Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
110
|
+
|
|
83
111
|
Kimi_K2_7_CodeParams = TypedDict(
|
|
84
112
|
"Kimi_K2_7_CodeParams",
|
|
85
113
|
{
|
|
@@ -506,8 +534,10 @@ __all__ = [
|
|
|
506
534
|
"Deepseek_V3_2Params",
|
|
507
535
|
"Deepseek_V4_FlashParams",
|
|
508
536
|
"Deepseek_V4_Flash_0731Params",
|
|
537
|
+
"Deepseek_V4_ProParams",
|
|
509
538
|
"Deepseek_V4_Pro_0813Params",
|
|
510
539
|
"Glm_5_1Params",
|
|
540
|
+
"Glm_5_2Params",
|
|
511
541
|
"Kimi_K2_7_CodeParams",
|
|
512
542
|
"Qwen_FlashParams",
|
|
513
543
|
"Qwen_MaxParams",
|
|
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
|