modelparams 0.0.2__tar.gz → 0.0.4__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.2 → modelparams-0.0.4}/PKG-INFO +2 -2
- {modelparams-0.0.2 → modelparams-0.0.4}/pyproject.toml +1 -1
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/_generated/catalog.json +175 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/_generated/model_ids.py +4 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/_generated/registry.py +2 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/mistral.py +18 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/xai.py +15 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/.gitignore +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/LICENSE +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/README.md +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/models.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/__init__.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/alibaba.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/openai.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.2 → modelparams-0.0.4}/src/modelparams/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: modelparams
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
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
|
|
@@ -9805,6 +9805,111 @@
|
|
|
9805
9805
|
}
|
|
9806
9806
|
]
|
|
9807
9807
|
},
|
|
9808
|
+
{
|
|
9809
|
+
"provider": "mistral",
|
|
9810
|
+
"authType": "api_key",
|
|
9811
|
+
"model": "codestral-2508",
|
|
9812
|
+
"params": [
|
|
9813
|
+
{
|
|
9814
|
+
"path": "max_tokens",
|
|
9815
|
+
"label": "Max tokens",
|
|
9816
|
+
"description": "Maximum number of tokens to generate in the completion.",
|
|
9817
|
+
"group": "generation_length",
|
|
9818
|
+
"type": "integer",
|
|
9819
|
+
"range": {
|
|
9820
|
+
"min": 1
|
|
9821
|
+
}
|
|
9822
|
+
},
|
|
9823
|
+
{
|
|
9824
|
+
"path": "stop",
|
|
9825
|
+
"label": "Stop sequence",
|
|
9826
|
+
"description": "Stops generation when this string is detected.",
|
|
9827
|
+
"group": "generation_length",
|
|
9828
|
+
"type": "string"
|
|
9829
|
+
},
|
|
9830
|
+
{
|
|
9831
|
+
"path": "temperature",
|
|
9832
|
+
"label": "Temperature",
|
|
9833
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
9834
|
+
"group": "sampling",
|
|
9835
|
+
"type": "number",
|
|
9836
|
+
"range": {
|
|
9837
|
+
"min": 0,
|
|
9838
|
+
"max": 1.5,
|
|
9839
|
+
"step": 0.1
|
|
9840
|
+
}
|
|
9841
|
+
},
|
|
9842
|
+
{
|
|
9843
|
+
"path": "top_p",
|
|
9844
|
+
"label": "Top P",
|
|
9845
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
9846
|
+
"group": "sampling",
|
|
9847
|
+
"type": "number",
|
|
9848
|
+
"default": 1,
|
|
9849
|
+
"range": {
|
|
9850
|
+
"min": 0,
|
|
9851
|
+
"max": 1,
|
|
9852
|
+
"step": 0.01
|
|
9853
|
+
}
|
|
9854
|
+
},
|
|
9855
|
+
{
|
|
9856
|
+
"path": "random_seed",
|
|
9857
|
+
"label": "Random seed",
|
|
9858
|
+
"description": "Seed used for deterministic sampling when reproducible outputs are desired.",
|
|
9859
|
+
"group": "sampling",
|
|
9860
|
+
"type": "integer",
|
|
9861
|
+
"range": {
|
|
9862
|
+
"min": 0
|
|
9863
|
+
}
|
|
9864
|
+
},
|
|
9865
|
+
{
|
|
9866
|
+
"path": "presence_penalty",
|
|
9867
|
+
"label": "Presence penalty",
|
|
9868
|
+
"description": "Penalizes repeated words or phrases to encourage a wider variety of generated content.",
|
|
9869
|
+
"group": "sampling",
|
|
9870
|
+
"type": "number",
|
|
9871
|
+
"default": 0,
|
|
9872
|
+
"range": {
|
|
9873
|
+
"min": -2,
|
|
9874
|
+
"max": 2,
|
|
9875
|
+
"step": 0.1
|
|
9876
|
+
}
|
|
9877
|
+
},
|
|
9878
|
+
{
|
|
9879
|
+
"path": "frequency_penalty",
|
|
9880
|
+
"label": "Frequency penalty",
|
|
9881
|
+
"description": "Penalizes words based on how often they already appear in the generated text.",
|
|
9882
|
+
"group": "sampling",
|
|
9883
|
+
"type": "number",
|
|
9884
|
+
"default": 0,
|
|
9885
|
+
"range": {
|
|
9886
|
+
"min": -2,
|
|
9887
|
+
"max": 2,
|
|
9888
|
+
"step": 0.1
|
|
9889
|
+
}
|
|
9890
|
+
},
|
|
9891
|
+
{
|
|
9892
|
+
"path": "response_format.type",
|
|
9893
|
+
"label": "Response format",
|
|
9894
|
+
"description": "Controls whether the model returns normal text or JSON mode output.",
|
|
9895
|
+
"group": "output_format",
|
|
9896
|
+
"type": "enum",
|
|
9897
|
+
"default": "text",
|
|
9898
|
+
"values": [
|
|
9899
|
+
"text",
|
|
9900
|
+
"json_object"
|
|
9901
|
+
]
|
|
9902
|
+
},
|
|
9903
|
+
{
|
|
9904
|
+
"path": "safe_prompt",
|
|
9905
|
+
"label": "Safe prompt",
|
|
9906
|
+
"description": "Controls whether Mistral injects its safety prompt before the conversation.",
|
|
9907
|
+
"group": "provider_metadata",
|
|
9908
|
+
"type": "boolean",
|
|
9909
|
+
"default": false
|
|
9910
|
+
}
|
|
9911
|
+
]
|
|
9912
|
+
},
|
|
9808
9913
|
{
|
|
9809
9914
|
"provider": "mistral",
|
|
9810
9915
|
"authType": "api_key",
|
|
@@ -16112,6 +16217,76 @@
|
|
|
16112
16217
|
}
|
|
16113
16218
|
]
|
|
16114
16219
|
},
|
|
16220
|
+
{
|
|
16221
|
+
"provider": "xai",
|
|
16222
|
+
"authType": "api_key",
|
|
16223
|
+
"model": "grok-4.6",
|
|
16224
|
+
"params": [
|
|
16225
|
+
{
|
|
16226
|
+
"path": "max_completion_tokens",
|
|
16227
|
+
"label": "Max completion tokens",
|
|
16228
|
+
"description": "Upper bound for visible output tokens generated in the chat completion.",
|
|
16229
|
+
"group": "generation_length",
|
|
16230
|
+
"type": "integer",
|
|
16231
|
+
"range": {
|
|
16232
|
+
"min": 1
|
|
16233
|
+
}
|
|
16234
|
+
},
|
|
16235
|
+
{
|
|
16236
|
+
"path": "temperature",
|
|
16237
|
+
"label": "Temperature",
|
|
16238
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
16239
|
+
"group": "sampling",
|
|
16240
|
+
"type": "number",
|
|
16241
|
+
"default": 1,
|
|
16242
|
+
"range": {
|
|
16243
|
+
"min": 0,
|
|
16244
|
+
"max": 2,
|
|
16245
|
+
"step": 0.1
|
|
16246
|
+
}
|
|
16247
|
+
},
|
|
16248
|
+
{
|
|
16249
|
+
"path": "top_p",
|
|
16250
|
+
"label": "Top P",
|
|
16251
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
16252
|
+
"group": "sampling",
|
|
16253
|
+
"type": "number",
|
|
16254
|
+
"default": 1,
|
|
16255
|
+
"range": {
|
|
16256
|
+
"min": 0,
|
|
16257
|
+
"max": 1,
|
|
16258
|
+
"step": 0.01
|
|
16259
|
+
}
|
|
16260
|
+
},
|
|
16261
|
+
{
|
|
16262
|
+
"path": "seed",
|
|
16263
|
+
"label": "Seed",
|
|
16264
|
+
"description": "Optional seed used for decoding when reproducible sampling is desired.",
|
|
16265
|
+
"group": "sampling",
|
|
16266
|
+
"type": "integer"
|
|
16267
|
+
},
|
|
16268
|
+
{
|
|
16269
|
+
"path": "stop",
|
|
16270
|
+
"label": "Stop sequence",
|
|
16271
|
+
"description": "Stops generation when this sequence is produced. xAI accepts up to four stop sequences.",
|
|
16272
|
+
"group": "generation_length",
|
|
16273
|
+
"type": "string"
|
|
16274
|
+
},
|
|
16275
|
+
{
|
|
16276
|
+
"path": "response_format.type",
|
|
16277
|
+
"label": "Response format",
|
|
16278
|
+
"description": "Controls whether the model returns text, JSON mode output, or structured JSON schema output.",
|
|
16279
|
+
"group": "output_format",
|
|
16280
|
+
"type": "enum",
|
|
16281
|
+
"default": "text",
|
|
16282
|
+
"values": [
|
|
16283
|
+
"text",
|
|
16284
|
+
"json_object",
|
|
16285
|
+
"json_schema"
|
|
16286
|
+
]
|
|
16287
|
+
}
|
|
16288
|
+
]
|
|
16289
|
+
},
|
|
16115
16290
|
{
|
|
16116
16291
|
"provider": "xai",
|
|
16117
16292
|
"authType": "api_key",
|
|
@@ -115,6 +115,7 @@ ModelId = Literal[
|
|
|
115
115
|
"minimax/MiniMax-M2.7-subscription",
|
|
116
116
|
"minimax/minimax-m3",
|
|
117
117
|
"minimax/MiniMax-M3-subscription",
|
|
118
|
+
"mistral/codestral-2508",
|
|
118
119
|
"mistral/codestral-latest",
|
|
119
120
|
"mistral/devstral-2512",
|
|
120
121
|
"mistral/devstral-latest",
|
|
@@ -220,6 +221,7 @@ ModelId = Literal[
|
|
|
220
221
|
"xai/grok-4.3-subscription",
|
|
221
222
|
"xai/grok-4.5",
|
|
222
223
|
"xai/grok-4.5-subscription",
|
|
224
|
+
"xai/grok-4.6",
|
|
223
225
|
"xai/grok-build-0.1",
|
|
224
226
|
"xai/grok-build-0.1-subscription",
|
|
225
227
|
"xiaomi/mimo-v2.5",
|
|
@@ -360,6 +362,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
|
|
|
360
362
|
"minimax/MiniMax-M2.7-subscription",
|
|
361
363
|
"minimax/minimax-m3",
|
|
362
364
|
"minimax/MiniMax-M3-subscription",
|
|
365
|
+
"mistral/codestral-2508",
|
|
363
366
|
"mistral/codestral-latest",
|
|
364
367
|
"mistral/devstral-2512",
|
|
365
368
|
"mistral/devstral-latest",
|
|
@@ -465,6 +468,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
|
|
|
465
468
|
"xai/grok-4.3-subscription",
|
|
466
469
|
"xai/grok-4.5",
|
|
467
470
|
"xai/grok-4.5-subscription",
|
|
471
|
+
"xai/grok-4.6",
|
|
468
472
|
"xai/grok-build-0.1",
|
|
469
473
|
"xai/grok-build-0.1-subscription",
|
|
470
474
|
"xiaomi/mimo-v2.5",
|
|
@@ -136,6 +136,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
|
|
|
136
136
|
"minimax/MiniMax-M2.7-subscription": minimax.Minimax_M2_7_SubscriptionParams,
|
|
137
137
|
"minimax/minimax-m3": minimax.Minimax_M3Params,
|
|
138
138
|
"minimax/MiniMax-M3-subscription": minimax.Minimax_M3_SubscriptionParams,
|
|
139
|
+
"mistral/codestral-2508": mistral.Codestral_2508Params,
|
|
139
140
|
"mistral/codestral-latest": mistral.Codestral_LatestParams,
|
|
140
141
|
"mistral/devstral-2512": mistral.Devstral_2512Params,
|
|
141
142
|
"mistral/devstral-latest": mistral.Devstral_LatestParams,
|
|
@@ -241,6 +242,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
|
|
|
241
242
|
"xai/grok-4.3-subscription": xai.Grok_4_3_SubscriptionParams,
|
|
242
243
|
"xai/grok-4.5": xai.Grok_4_5Params,
|
|
243
244
|
"xai/grok-4.5-subscription": xai.Grok_4_5_SubscriptionParams,
|
|
245
|
+
"xai/grok-4.6": xai.Grok_4_6Params,
|
|
244
246
|
"xai/grok-build-0.1": xai.Grok_Build_0_1Params,
|
|
245
247
|
"xai/grok-build-0.1-subscription": xai.Grok_Build_0_1_SubscriptionParams,
|
|
246
248
|
"xiaomi/mimo-v2.5": xiaomi.Mimo_V2_5Params,
|
|
@@ -10,6 +10,23 @@ from typing_extensions import TypedDict
|
|
|
10
10
|
|
|
11
11
|
_PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
|
|
12
12
|
|
|
13
|
+
Codestral_2508Params = TypedDict(
|
|
14
|
+
"Codestral_2508Params",
|
|
15
|
+
{
|
|
16
|
+
"max_tokens": Annotated[int, Field(ge=1)],
|
|
17
|
+
"stop": str,
|
|
18
|
+
"temperature": Annotated[float, Field(ge=0, le=1.5)],
|
|
19
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
20
|
+
"random_seed": Annotated[int, Field(ge=0)],
|
|
21
|
+
"presence_penalty": Annotated[float, Field(ge=-2, le=2)],
|
|
22
|
+
"frequency_penalty": Annotated[float, Field(ge=-2, le=2)],
|
|
23
|
+
"response_format.type": Literal["text", "json_object"],
|
|
24
|
+
"safe_prompt": bool,
|
|
25
|
+
},
|
|
26
|
+
total=False,
|
|
27
|
+
)
|
|
28
|
+
setattr(Codestral_2508Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
29
|
+
|
|
13
30
|
Codestral_LatestParams = TypedDict(
|
|
14
31
|
"Codestral_LatestParams",
|
|
15
32
|
{
|
|
@@ -234,6 +251,7 @@ Open_Mistral_NemoParams = TypedDict(
|
|
|
234
251
|
setattr(Open_Mistral_NemoParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
235
252
|
|
|
236
253
|
__all__ = [
|
|
254
|
+
"Codestral_2508Params",
|
|
237
255
|
"Codestral_LatestParams",
|
|
238
256
|
"Devstral_2512Params",
|
|
239
257
|
"Devstral_LatestParams",
|
|
@@ -133,6 +133,20 @@ Grok_4_5_SubscriptionParams = TypedDict(
|
|
|
133
133
|
)
|
|
134
134
|
setattr(Grok_4_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
135
135
|
|
|
136
|
+
Grok_4_6Params = TypedDict(
|
|
137
|
+
"Grok_4_6Params",
|
|
138
|
+
{
|
|
139
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
140
|
+
"temperature": Annotated[float, Field(ge=0, le=2)],
|
|
141
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
142
|
+
"seed": int,
|
|
143
|
+
"stop": str,
|
|
144
|
+
"response_format.type": Literal["text", "json_object", "json_schema"],
|
|
145
|
+
},
|
|
146
|
+
total=False,
|
|
147
|
+
)
|
|
148
|
+
setattr(Grok_4_6Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
149
|
+
|
|
136
150
|
Grok_Build_0_1Params = TypedDict(
|
|
137
151
|
"Grok_Build_0_1Params",
|
|
138
152
|
{
|
|
@@ -169,6 +183,7 @@ __all__ = [
|
|
|
169
183
|
"Grok_4_3_SubscriptionParams",
|
|
170
184
|
"Grok_4_5Params",
|
|
171
185
|
"Grok_4_5_SubscriptionParams",
|
|
186
|
+
"Grok_4_6Params",
|
|
172
187
|
"Grok_Build_0_1Params",
|
|
173
188
|
"Grok_Build_0_1_SubscriptionParams",
|
|
174
189
|
]
|
|
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
|