modelparams 0.0.30__tar.gz → 0.0.31__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.30 → modelparams-0.0.31}/PKG-INFO +1 -1
  2. {modelparams-0.0.30 → modelparams-0.0.31}/pyproject.toml +1 -1
  3. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/_generated/catalog.json +75 -0
  4. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/_generated/model_ids.py +2 -0
  5. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/_generated/registry.py +1 -0
  6. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/alibaba.py +15 -0
  7. {modelparams-0.0.30 → modelparams-0.0.31}/.gitignore +0 -0
  8. {modelparams-0.0.30 → modelparams-0.0.31}/LICENSE +0 -0
  9. {modelparams-0.0.30 → modelparams-0.0.31}/README.md +0 -0
  10. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/anthropic.py +0 -0
  17. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/cerebras.py +0 -0
  18. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/cohere.py +0 -0
  19. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/deepseek.py +0 -0
  20. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/google.py +0 -0
  21. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.30 → modelparams-0.0.31}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.30
3
+ Version: 0.0.31
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.30"
7
+ version = "0.0.31"
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"
@@ -74,6 +74,81 @@
74
74
  }
75
75
  ]
76
76
  },
77
+ {
78
+ "provider": "alibaba",
79
+ "authType": "api_key",
80
+ "model": "deepseek-v4-flash",
81
+ "params": [
82
+ {
83
+ "path": "max_completion_tokens",
84
+ "label": "Max tokens",
85
+ "description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
86
+ "group": "generation_length",
87
+ "type": "integer",
88
+ "range": {
89
+ "min": 1
90
+ }
91
+ },
92
+ {
93
+ "path": "temperature",
94
+ "label": "Temperature",
95
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
96
+ "group": "sampling",
97
+ "type": "number",
98
+ "range": {
99
+ "min": 0,
100
+ "max": 1.9,
101
+ "step": 0.1
102
+ }
103
+ },
104
+ {
105
+ "path": "top_p",
106
+ "label": "Top P",
107
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
108
+ "group": "sampling",
109
+ "type": "number",
110
+ "range": {
111
+ "min": 0,
112
+ "max": 1,
113
+ "step": 0.01
114
+ }
115
+ },
116
+ {
117
+ "path": "extra_body.top_k",
118
+ "label": "Top K",
119
+ "description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
120
+ "group": "sampling",
121
+ "type": "integer",
122
+ "default": 20,
123
+ "range": {
124
+ "min": 0
125
+ }
126
+ },
127
+ {
128
+ "path": "extra_body.enable_thinking",
129
+ "label": "Enable thinking",
130
+ "description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
131
+ "group": "reasoning",
132
+ "type": "boolean",
133
+ "default": true
134
+ },
135
+ {
136
+ "path": "extra_body.thinking_budget",
137
+ "label": "Thinking budget",
138
+ "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.",
139
+ "group": "reasoning",
140
+ "applicability": {
141
+ "only": {
142
+ "extra_body.enable_thinking": true
143
+ }
144
+ },
145
+ "type": "integer",
146
+ "range": {
147
+ "min": 1
148
+ }
149
+ }
150
+ ]
151
+ },
77
152
  {
78
153
  "provider": "alibaba",
79
154
  "authType": "api_key",
@@ -5,6 +5,7 @@ from typing import Literal
5
5
 
6
6
  ModelId = Literal[
7
7
  "alibaba/deepseek-v3.2",
8
+ "alibaba/deepseek-v4-flash",
8
9
  "alibaba/deepseek-v4-flash-0731",
9
10
  "alibaba/deepseek-v4-pro-0813",
10
11
  "alibaba/glm-5.1",
@@ -294,6 +295,7 @@ ModelId = Literal[
294
295
 
295
296
  MODEL_IDS: tuple[ModelId, ...] = (
296
297
  "alibaba/deepseek-v3.2",
298
+ "alibaba/deepseek-v4-flash",
297
299
  "alibaba/deepseek-v4-flash-0731",
298
300
  "alibaba/deepseek-v4-pro-0813",
299
301
  "alibaba/glm-5.1",
@@ -26,6 +26,7 @@ from .model_ids import ModelId
26
26
 
27
27
  PARAM_TYPES: dict[ModelId, Any] = {
28
28
  "alibaba/deepseek-v3.2": alibaba.Deepseek_V3_2Params,
29
+ "alibaba/deepseek-v4-flash": alibaba.Deepseek_V4_FlashParams,
29
30
  "alibaba/deepseek-v4-flash-0731": alibaba.Deepseek_V4_Flash_0731Params,
30
31
  "alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
31
32
  "alibaba/glm-5.1": alibaba.Glm_5_1Params,
@@ -24,6 +24,20 @@ Deepseek_V3_2Params = TypedDict(
24
24
  )
25
25
  setattr(Deepseek_V3_2Params, "__pydantic_config__", _PARAMS_CONFIG)
26
26
 
27
+ Deepseek_V4_FlashParams = TypedDict(
28
+ "Deepseek_V4_FlashParams",
29
+ {
30
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
31
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
32
+ "top_p": Annotated[float, Field(ge=0, le=1)],
33
+ "extra_body.top_k": Annotated[int, Field(ge=0)],
34
+ "extra_body.enable_thinking": bool,
35
+ "extra_body.thinking_budget": Annotated[int, Field(ge=1)],
36
+ },
37
+ total=False,
38
+ )
39
+ setattr(Deepseek_V4_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
40
+
27
41
  Deepseek_V4_Flash_0731Params = TypedDict(
28
42
  "Deepseek_V4_Flash_0731Params",
29
43
  {
@@ -490,6 +504,7 @@ setattr(Qwq_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
490
504
 
491
505
  __all__ = [
492
506
  "Deepseek_V3_2Params",
507
+ "Deepseek_V4_FlashParams",
493
508
  "Deepseek_V4_Flash_0731Params",
494
509
  "Deepseek_V4_Pro_0813Params",
495
510
  "Glm_5_1Params",
File without changes
File without changes
File without changes