modelparams 0.0.14__tar.gz → 0.0.16__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.14 → modelparams-0.0.16}/PKG-INFO +1 -1
- {modelparams-0.0.14 → modelparams-0.0.16}/pyproject.toml +1 -1
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/_generated/catalog.json +129 -6
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/_generated/model_ids.py +4 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/_generated/registry.py +2 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/alibaba.py +28 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/openai.py +6 -6
- {modelparams-0.0.14 → modelparams-0.0.16}/.gitignore +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/LICENSE +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/README.md +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/models.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/mistral.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/xai.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.16}/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.16
|
|
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
|
|
@@ -59,6 +59,66 @@
|
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"provider": "alibaba",
|
|
64
|
+
"authType": "api_key",
|
|
65
|
+
"model": "qwen-max",
|
|
66
|
+
"params": [
|
|
67
|
+
{
|
|
68
|
+
"path": "max_tokens",
|
|
69
|
+
"label": "Max tokens",
|
|
70
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
71
|
+
"group": "generation_length",
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"range": {
|
|
74
|
+
"min": 1
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "temperature",
|
|
79
|
+
"label": "Temperature",
|
|
80
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
81
|
+
"group": "sampling",
|
|
82
|
+
"type": "number",
|
|
83
|
+
"range": {
|
|
84
|
+
"min": 0,
|
|
85
|
+
"max": 1.9,
|
|
86
|
+
"step": 0.1
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "top_p",
|
|
91
|
+
"label": "Top P",
|
|
92
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
93
|
+
"group": "sampling",
|
|
94
|
+
"type": "number",
|
|
95
|
+
"range": {
|
|
96
|
+
"min": 0,
|
|
97
|
+
"max": 1,
|
|
98
|
+
"step": 0.01
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "extra_body.top_k",
|
|
103
|
+
"label": "Top K",
|
|
104
|
+
"description": "Limits generation to the selected number of highest-probability tokens.",
|
|
105
|
+
"group": "sampling",
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"default": 20,
|
|
108
|
+
"range": {
|
|
109
|
+
"min": 1
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"path": "extra_body.chat_template_kwargs.enable_thinking",
|
|
114
|
+
"label": "Enable thinking",
|
|
115
|
+
"description": "Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.",
|
|
116
|
+
"group": "reasoning",
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": true
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
62
122
|
{
|
|
63
123
|
"provider": "alibaba",
|
|
64
124
|
"authType": "api_key",
|
|
@@ -119,6 +179,66 @@
|
|
|
119
179
|
}
|
|
120
180
|
]
|
|
121
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"provider": "alibaba",
|
|
184
|
+
"authType": "api_key",
|
|
185
|
+
"model": "qwen-turbo",
|
|
186
|
+
"params": [
|
|
187
|
+
{
|
|
188
|
+
"path": "max_tokens",
|
|
189
|
+
"label": "Max tokens",
|
|
190
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
191
|
+
"group": "generation_length",
|
|
192
|
+
"type": "integer",
|
|
193
|
+
"range": {
|
|
194
|
+
"min": 1
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"path": "temperature",
|
|
199
|
+
"label": "Temperature",
|
|
200
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
201
|
+
"group": "sampling",
|
|
202
|
+
"type": "number",
|
|
203
|
+
"range": {
|
|
204
|
+
"min": 0,
|
|
205
|
+
"max": 1.9,
|
|
206
|
+
"step": 0.1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"path": "top_p",
|
|
211
|
+
"label": "Top P",
|
|
212
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
213
|
+
"group": "sampling",
|
|
214
|
+
"type": "number",
|
|
215
|
+
"range": {
|
|
216
|
+
"min": 0,
|
|
217
|
+
"max": 1,
|
|
218
|
+
"step": 0.01
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"path": "extra_body.top_k",
|
|
223
|
+
"label": "Top K",
|
|
224
|
+
"description": "Limits generation to the selected number of highest-probability tokens.",
|
|
225
|
+
"group": "sampling",
|
|
226
|
+
"type": "integer",
|
|
227
|
+
"default": 20,
|
|
228
|
+
"range": {
|
|
229
|
+
"min": 1
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"path": "extra_body.chat_template_kwargs.enable_thinking",
|
|
234
|
+
"label": "Enable thinking",
|
|
235
|
+
"description": "Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.",
|
|
236
|
+
"group": "reasoning",
|
|
237
|
+
"type": "boolean",
|
|
238
|
+
"default": true
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
122
242
|
{
|
|
123
243
|
"provider": "alibaba",
|
|
124
244
|
"authType": "api_key",
|
|
@@ -15479,7 +15599,7 @@
|
|
|
15479
15599
|
"type": "integer",
|
|
15480
15600
|
"default": 4096,
|
|
15481
15601
|
"range": {
|
|
15482
|
-
"min":
|
|
15602
|
+
"min": 1
|
|
15483
15603
|
}
|
|
15484
15604
|
},
|
|
15485
15605
|
{
|
|
@@ -15493,7 +15613,8 @@
|
|
|
15493
15613
|
"none",
|
|
15494
15614
|
"low",
|
|
15495
15615
|
"medium",
|
|
15496
|
-
"high"
|
|
15616
|
+
"high",
|
|
15617
|
+
"xhigh"
|
|
15497
15618
|
]
|
|
15498
15619
|
}
|
|
15499
15620
|
]
|
|
@@ -15560,7 +15681,7 @@
|
|
|
15560
15681
|
"type": "integer",
|
|
15561
15682
|
"default": 4096,
|
|
15562
15683
|
"range": {
|
|
15563
|
-
"min":
|
|
15684
|
+
"min": 1
|
|
15564
15685
|
}
|
|
15565
15686
|
},
|
|
15566
15687
|
{
|
|
@@ -15574,7 +15695,8 @@
|
|
|
15574
15695
|
"none",
|
|
15575
15696
|
"low",
|
|
15576
15697
|
"medium",
|
|
15577
|
-
"high"
|
|
15698
|
+
"high",
|
|
15699
|
+
"xhigh"
|
|
15578
15700
|
]
|
|
15579
15701
|
}
|
|
15580
15702
|
]
|
|
@@ -15641,7 +15763,7 @@
|
|
|
15641
15763
|
"type": "integer",
|
|
15642
15764
|
"default": 4096,
|
|
15643
15765
|
"range": {
|
|
15644
|
-
"min":
|
|
15766
|
+
"min": 1
|
|
15645
15767
|
}
|
|
15646
15768
|
},
|
|
15647
15769
|
{
|
|
@@ -15655,7 +15777,8 @@
|
|
|
15655
15777
|
"none",
|
|
15656
15778
|
"low",
|
|
15657
15779
|
"medium",
|
|
15658
|
-
"high"
|
|
15780
|
+
"high",
|
|
15781
|
+
"xhigh"
|
|
15659
15782
|
]
|
|
15660
15783
|
}
|
|
15661
15784
|
]
|
|
@@ -5,7 +5,9 @@ from typing import Literal
|
|
|
5
5
|
|
|
6
6
|
ModelId = Literal[
|
|
7
7
|
"alibaba/qwen-flash",
|
|
8
|
+
"alibaba/qwen-max",
|
|
8
9
|
"alibaba/qwen-plus",
|
|
10
|
+
"alibaba/qwen-turbo",
|
|
9
11
|
"alibaba/qwen3-coder-flash",
|
|
10
12
|
"alibaba/qwen3-coder-plus",
|
|
11
13
|
"alibaba/qwen3-max",
|
|
@@ -264,7 +266,9 @@ ModelId = Literal[
|
|
|
264
266
|
|
|
265
267
|
MODEL_IDS: tuple[ModelId, ...] = (
|
|
266
268
|
"alibaba/qwen-flash",
|
|
269
|
+
"alibaba/qwen-max",
|
|
267
270
|
"alibaba/qwen-plus",
|
|
271
|
+
"alibaba/qwen-turbo",
|
|
268
272
|
"alibaba/qwen3-coder-flash",
|
|
269
273
|
"alibaba/qwen3-coder-plus",
|
|
270
274
|
"alibaba/qwen3-max",
|
|
@@ -26,7 +26,9 @@ from .model_ids import ModelId
|
|
|
26
26
|
|
|
27
27
|
PARAM_TYPES: dict[ModelId, Any] = {
|
|
28
28
|
"alibaba/qwen-flash": alibaba.Qwen_FlashParams,
|
|
29
|
+
"alibaba/qwen-max": alibaba.Qwen_MaxParams,
|
|
29
30
|
"alibaba/qwen-plus": alibaba.Qwen_PlusParams,
|
|
31
|
+
"alibaba/qwen-turbo": alibaba.Qwen_TurboParams,
|
|
30
32
|
"alibaba/qwen3-coder-flash": alibaba.Qwen3_Coder_FlashParams,
|
|
31
33
|
"alibaba/qwen3-coder-plus": alibaba.Qwen3_Coder_PlusParams,
|
|
32
34
|
"alibaba/qwen3-max": alibaba.Qwen3_MaxParams,
|
|
@@ -23,6 +23,19 @@ Qwen_FlashParams = TypedDict(
|
|
|
23
23
|
)
|
|
24
24
|
setattr(Qwen_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
25
25
|
|
|
26
|
+
Qwen_MaxParams = TypedDict(
|
|
27
|
+
"Qwen_MaxParams",
|
|
28
|
+
{
|
|
29
|
+
"max_tokens": Annotated[int, Field(ge=1)],
|
|
30
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
31
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
32
|
+
"extra_body.top_k": Annotated[int, Field(ge=1)],
|
|
33
|
+
"extra_body.chat_template_kwargs.enable_thinking": bool,
|
|
34
|
+
},
|
|
35
|
+
total=False,
|
|
36
|
+
)
|
|
37
|
+
setattr(Qwen_MaxParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
38
|
+
|
|
26
39
|
Qwen_PlusParams = TypedDict(
|
|
27
40
|
"Qwen_PlusParams",
|
|
28
41
|
{
|
|
@@ -36,6 +49,19 @@ Qwen_PlusParams = TypedDict(
|
|
|
36
49
|
)
|
|
37
50
|
setattr(Qwen_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
38
51
|
|
|
52
|
+
Qwen_TurboParams = TypedDict(
|
|
53
|
+
"Qwen_TurboParams",
|
|
54
|
+
{
|
|
55
|
+
"max_tokens": Annotated[int, Field(ge=1)],
|
|
56
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
57
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
58
|
+
"extra_body.top_k": Annotated[int, Field(ge=1)],
|
|
59
|
+
"extra_body.chat_template_kwargs.enable_thinking": bool,
|
|
60
|
+
},
|
|
61
|
+
total=False,
|
|
62
|
+
)
|
|
63
|
+
setattr(Qwen_TurboParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
64
|
+
|
|
39
65
|
Qwen3_Coder_FlashParams = TypedDict(
|
|
40
66
|
"Qwen3_Coder_FlashParams",
|
|
41
67
|
{
|
|
@@ -183,7 +209,9 @@ setattr(Qwq_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
|
183
209
|
|
|
184
210
|
__all__ = [
|
|
185
211
|
"Qwen_FlashParams",
|
|
212
|
+
"Qwen_MaxParams",
|
|
186
213
|
"Qwen_PlusParams",
|
|
214
|
+
"Qwen_TurboParams",
|
|
187
215
|
"Qwen3_Coder_FlashParams",
|
|
188
216
|
"Qwen3_Coder_PlusParams",
|
|
189
217
|
"Qwen3_MaxParams",
|
|
@@ -395,8 +395,8 @@ setattr(Gpt_5_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
|
395
395
|
Gpt_5_6_LunaParams = TypedDict(
|
|
396
396
|
"Gpt_5_6_LunaParams",
|
|
397
397
|
{
|
|
398
|
-
"max_completion_tokens": Annotated[int, Field(ge=
|
|
399
|
-
"reasoning_effort": Literal["none", "low", "medium", "high"],
|
|
398
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
399
|
+
"reasoning_effort": Literal["none", "low", "medium", "high", "xhigh"],
|
|
400
400
|
},
|
|
401
401
|
total=False,
|
|
402
402
|
)
|
|
@@ -416,8 +416,8 @@ setattr(Gpt_5_6_Luna_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
|
416
416
|
Gpt_5_6_SolParams = TypedDict(
|
|
417
417
|
"Gpt_5_6_SolParams",
|
|
418
418
|
{
|
|
419
|
-
"max_completion_tokens": Annotated[int, Field(ge=
|
|
420
|
-
"reasoning_effort": Literal["none", "low", "medium", "high"],
|
|
419
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
420
|
+
"reasoning_effort": Literal["none", "low", "medium", "high", "xhigh"],
|
|
421
421
|
},
|
|
422
422
|
total=False,
|
|
423
423
|
)
|
|
@@ -437,8 +437,8 @@ setattr(Gpt_5_6_Sol_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
|
437
437
|
Gpt_5_6_TerraParams = TypedDict(
|
|
438
438
|
"Gpt_5_6_TerraParams",
|
|
439
439
|
{
|
|
440
|
-
"max_completion_tokens": Annotated[int, Field(ge=
|
|
441
|
-
"reasoning_effort": Literal["none", "low", "medium", "high"],
|
|
440
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
441
|
+
"reasoning_effort": Literal["none", "low", "medium", "high", "xhigh"],
|
|
442
442
|
},
|
|
443
443
|
total=False,
|
|
444
444
|
)
|
|
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
|