modelparams 0.0.2__tar.gz → 0.0.3__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.
Files changed (33) hide show
  1. {modelparams-0.0.2 → modelparams-0.0.3}/PKG-INFO +2 -2
  2. {modelparams-0.0.2 → modelparams-0.0.3}/pyproject.toml +1 -1
  3. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/_generated/catalog.json +105 -0
  4. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/_generated/model_ids.py +2 -0
  5. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/_generated/registry.py +1 -0
  6. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/mistral.py +18 -0
  7. {modelparams-0.0.2 → modelparams-0.0.3}/.gitignore +0 -0
  8. {modelparams-0.0.2 → modelparams-0.0.3}/LICENSE +0 -0
  9. {modelparams-0.0.2 → modelparams-0.0.3}/README.md +0 -0
  10. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/alibaba.py +0 -0
  17. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/anthropic.py +0 -0
  18. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/cerebras.py +0 -0
  19. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/cohere.py +0 -0
  20. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/deepseek.py +0 -0
  21. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/google.py +0 -0
  22. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/groq.py +0 -0
  23. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/meta.py +0 -0
  24. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/minimax.py +0 -0
  25. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.2 → modelparams-0.0.3}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.2
3
+ Version: 0.0.3
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "modelparams"
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  description = "Typed model parameters for Python, generated from the modelparams.dev catalog."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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",
@@ -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",
@@ -360,6 +361,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
360
361
  "minimax/MiniMax-M2.7-subscription",
361
362
  "minimax/minimax-m3",
362
363
  "minimax/MiniMax-M3-subscription",
364
+ "mistral/codestral-2508",
363
365
  "mistral/codestral-latest",
364
366
  "mistral/devstral-2512",
365
367
  "mistral/devstral-latest",
@@ -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,
@@ -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",
File without changes
File without changes
File without changes