modelparams 0.0.25__tar.gz → 0.0.27__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.25 → modelparams-0.0.27}/PKG-INFO +1 -1
  2. {modelparams-0.0.25 → modelparams-0.0.27}/pyproject.toml +1 -1
  3. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/_generated/catalog.json +168 -0
  4. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/_generated/model_ids.py +4 -0
  5. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/_generated/registry.py +2 -0
  6. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/alibaba.py +15 -0
  7. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/google.py +17 -0
  8. {modelparams-0.0.25 → modelparams-0.0.27}/.gitignore +0 -0
  9. {modelparams-0.0.25 → modelparams-0.0.27}/LICENSE +0 -0
  10. {modelparams-0.0.25 → modelparams-0.0.27}/README.md +0 -0
  11. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/__init__.py +0 -0
  12. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/_generated/__init__.py +0 -0
  13. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/catalog.py +0 -0
  14. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/models.py +0 -0
  15. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/py.typed +0 -0
  16. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/__init__.py +0 -0
  17. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/anthropic.py +0 -0
  18. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/cerebras.py +0 -0
  19. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/cohere.py +0 -0
  20. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/deepseek.py +0 -0
  21. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.25 → modelparams-0.0.27}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.25
3
+ Version: 0.0.27
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.25"
7
+ version = "0.0.27"
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"
@@ -1,4 +1,79 @@
1
1
  [
2
+ {
3
+ "provider": "alibaba",
4
+ "authType": "api_key",
5
+ "model": "deepseek-v4-flash-0731",
6
+ "params": [
7
+ {
8
+ "path": "max_completion_tokens",
9
+ "label": "Max tokens",
10
+ "description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
11
+ "group": "generation_length",
12
+ "type": "integer",
13
+ "range": {
14
+ "min": 1
15
+ }
16
+ },
17
+ {
18
+ "path": "temperature",
19
+ "label": "Temperature",
20
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
21
+ "group": "sampling",
22
+ "type": "number",
23
+ "range": {
24
+ "min": 0,
25
+ "max": 1.9,
26
+ "step": 0.1
27
+ }
28
+ },
29
+ {
30
+ "path": "top_p",
31
+ "label": "Top P",
32
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
33
+ "group": "sampling",
34
+ "type": "number",
35
+ "range": {
36
+ "min": 0,
37
+ "max": 1,
38
+ "step": 0.01
39
+ }
40
+ },
41
+ {
42
+ "path": "extra_body.top_k",
43
+ "label": "Top K",
44
+ "description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
45
+ "group": "sampling",
46
+ "type": "integer",
47
+ "default": 20,
48
+ "range": {
49
+ "min": 0
50
+ }
51
+ },
52
+ {
53
+ "path": "extra_body.enable_thinking",
54
+ "label": "Enable thinking",
55
+ "description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
56
+ "group": "reasoning",
57
+ "type": "boolean",
58
+ "default": true
59
+ },
60
+ {
61
+ "path": "extra_body.thinking_budget",
62
+ "label": "Thinking budget",
63
+ "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.",
64
+ "group": "reasoning",
65
+ "applicability": {
66
+ "only": {
67
+ "extra_body.enable_thinking": true
68
+ }
69
+ },
70
+ "type": "integer",
71
+ "range": {
72
+ "min": 1
73
+ }
74
+ }
75
+ ]
76
+ },
2
77
  {
3
78
  "provider": "alibaba",
4
79
  "authType": "api_key",
@@ -9147,6 +9222,99 @@
9147
9222
  }
9148
9223
  ]
9149
9224
  },
9225
+ {
9226
+ "provider": "google",
9227
+ "authType": "api_key",
9228
+ "model": "gemini-3.1-flash-lite-image",
9229
+ "params": [
9230
+ {
9231
+ "path": "generationConfig.maxOutputTokens",
9232
+ "label": "Max output tokens",
9233
+ "description": "Maximum number of tokens to include in a response candidate.",
9234
+ "group": "generation_length",
9235
+ "type": "integer",
9236
+ "range": {
9237
+ "min": 1,
9238
+ "max": 65536
9239
+ }
9240
+ },
9241
+ {
9242
+ "path": "generationConfig.temperature",
9243
+ "label": "Temperature",
9244
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
9245
+ "group": "sampling",
9246
+ "type": "number",
9247
+ "default": 1,
9248
+ "range": {
9249
+ "min": 0,
9250
+ "max": 2,
9251
+ "step": 0.1
9252
+ }
9253
+ },
9254
+ {
9255
+ "path": "generationConfig.topP",
9256
+ "label": "Top P",
9257
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
9258
+ "group": "sampling",
9259
+ "type": "number",
9260
+ "default": 0.95,
9261
+ "range": {
9262
+ "min": 0,
9263
+ "max": 1,
9264
+ "step": 0.01
9265
+ }
9266
+ },
9267
+ {
9268
+ "path": "generationConfig.topK",
9269
+ "label": "Top K",
9270
+ "description": "Limits token sampling to the top K most likely next tokens.",
9271
+ "group": "sampling",
9272
+ "type": "integer",
9273
+ "default": 64,
9274
+ "range": {
9275
+ "min": 0
9276
+ }
9277
+ },
9278
+ {
9279
+ "path": "generationConfig.seed",
9280
+ "label": "Seed",
9281
+ "description": "Optional seed used for decoding when reproducible sampling is desired.",
9282
+ "group": "sampling",
9283
+ "type": "integer"
9284
+ },
9285
+ {
9286
+ "path": "generationConfig.thinkingConfig.thinkingLevel",
9287
+ "label": "Thinking level",
9288
+ "description": "Controls Gemini 3.1 Flash-Lite reasoning effort.",
9289
+ "group": "reasoning",
9290
+ "type": "enum",
9291
+ "default": "minimal",
9292
+ "values": [
9293
+ "minimal",
9294
+ "high"
9295
+ ]
9296
+ },
9297
+ {
9298
+ "path": "generationConfig.thinkingConfig.includeThoughts",
9299
+ "label": "Include thoughts",
9300
+ "description": "Controls whether Gemini returns available thought summaries in the response parts.",
9301
+ "group": "reasoning",
9302
+ "type": "boolean",
9303
+ "default": false
9304
+ },
9305
+ {
9306
+ "path": "generationConfig.responseMimeType",
9307
+ "label": "Response MIME type",
9308
+ "description": "MIME type for generated text candidates.",
9309
+ "group": "output_format",
9310
+ "type": "enum",
9311
+ "default": "text/plain",
9312
+ "values": [
9313
+ "text/plain"
9314
+ ]
9315
+ }
9316
+ ]
9317
+ },
9150
9318
  {
9151
9319
  "provider": "google",
9152
9320
  "authType": "subscription",
@@ -4,6 +4,7 @@
4
4
  from typing import Literal
5
5
 
6
6
  ModelId = Literal[
7
+ "alibaba/deepseek-v4-flash-0731",
7
8
  "alibaba/deepseek-v4-pro-0813",
8
9
  "alibaba/qwen-flash",
9
10
  "alibaba/qwen-max",
@@ -101,6 +102,7 @@ ModelId = Literal[
101
102
  "google/gemini-3-pro-image",
102
103
  "google/gemini-3.1-flash-image",
103
104
  "google/gemini-3.1-flash-lite",
105
+ "google/gemini-3.1-flash-lite-image",
104
106
  "google/gemini-3.1-flash-lite-preview-subscription",
105
107
  "google/gemini-3.1-flash-lite-subscription",
106
108
  "google/gemini-3.1-pro-preview-subscription",
@@ -288,6 +290,7 @@ ModelId = Literal[
288
290
  ]
289
291
 
290
292
  MODEL_IDS: tuple[ModelId, ...] = (
293
+ "alibaba/deepseek-v4-flash-0731",
291
294
  "alibaba/deepseek-v4-pro-0813",
292
295
  "alibaba/qwen-flash",
293
296
  "alibaba/qwen-max",
@@ -385,6 +388,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
385
388
  "google/gemini-3-pro-image",
386
389
  "google/gemini-3.1-flash-image",
387
390
  "google/gemini-3.1-flash-lite",
391
+ "google/gemini-3.1-flash-lite-image",
388
392
  "google/gemini-3.1-flash-lite-preview-subscription",
389
393
  "google/gemini-3.1-flash-lite-subscription",
390
394
  "google/gemini-3.1-pro-preview-subscription",
@@ -25,6 +25,7 @@ from modelparams.types import z_ai
25
25
  from .model_ids import ModelId
26
26
 
27
27
  PARAM_TYPES: dict[ModelId, Any] = {
28
+ "alibaba/deepseek-v4-flash-0731": alibaba.Deepseek_V4_Flash_0731Params,
28
29
  "alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
29
30
  "alibaba/qwen-flash": alibaba.Qwen_FlashParams,
30
31
  "alibaba/qwen-max": alibaba.Qwen_MaxParams,
@@ -122,6 +123,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
122
123
  "google/gemini-3-pro-image": google.Gemini_3_Pro_ImageParams,
123
124
  "google/gemini-3.1-flash-image": google.Gemini_3_1_Flash_ImageParams,
124
125
  "google/gemini-3.1-flash-lite": google.Gemini_3_1_Flash_LiteParams,
126
+ "google/gemini-3.1-flash-lite-image": google.Gemini_3_1_Flash_Lite_ImageParams,
125
127
  "google/gemini-3.1-flash-lite-preview-subscription": google.Gemini_3_1_Flash_Lite_Preview_SubscriptionParams,
126
128
  "google/gemini-3.1-flash-lite-subscription": google.Gemini_3_1_Flash_Lite_SubscriptionParams,
127
129
  "google/gemini-3.1-pro-preview-subscription": google.Gemini_3_1_Pro_Preview_SubscriptionParams,
@@ -10,6 +10,20 @@ from typing_extensions import TypedDict
10
10
 
11
11
  _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
12
12
 
13
+ Deepseek_V4_Flash_0731Params = TypedDict(
14
+ "Deepseek_V4_Flash_0731Params",
15
+ {
16
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
17
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
18
+ "top_p": Annotated[float, Field(ge=0, le=1)],
19
+ "extra_body.top_k": Annotated[int, Field(ge=0)],
20
+ "extra_body.enable_thinking": bool,
21
+ "extra_body.thinking_budget": Annotated[int, Field(ge=1)],
22
+ },
23
+ total=False,
24
+ )
25
+ setattr(Deepseek_V4_Flash_0731Params, "__pydantic_config__", _PARAMS_CONFIG)
26
+
13
27
  Deepseek_V4_Pro_0813Params = TypedDict(
14
28
  "Deepseek_V4_Pro_0813Params",
15
29
  {
@@ -433,6 +447,7 @@ Qwq_PlusParams = TypedDict(
433
447
  setattr(Qwq_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
434
448
 
435
449
  __all__ = [
450
+ "Deepseek_V4_Flash_0731Params",
436
451
  "Deepseek_V4_Pro_0813Params",
437
452
  "Qwen_FlashParams",
438
453
  "Qwen_MaxParams",
@@ -170,6 +170,22 @@ Gemini_3_1_Flash_LiteParams = TypedDict(
170
170
  )
171
171
  setattr(Gemini_3_1_Flash_LiteParams, "__pydantic_config__", _PARAMS_CONFIG)
172
172
 
173
+ Gemini_3_1_Flash_Lite_ImageParams = TypedDict(
174
+ "Gemini_3_1_Flash_Lite_ImageParams",
175
+ {
176
+ "generationConfig.maxOutputTokens": Annotated[int, Field(ge=1, le=65536)],
177
+ "generationConfig.temperature": Annotated[float, Field(ge=0, le=2)],
178
+ "generationConfig.topP": Annotated[float, Field(ge=0, le=1)],
179
+ "generationConfig.topK": Annotated[int, Field(ge=0)],
180
+ "generationConfig.seed": int,
181
+ "generationConfig.thinkingConfig.thinkingLevel": Literal["minimal", "high"],
182
+ "generationConfig.thinkingConfig.includeThoughts": bool,
183
+ "generationConfig.responseMimeType": Literal["text/plain"],
184
+ },
185
+ total=False,
186
+ )
187
+ setattr(Gemini_3_1_Flash_Lite_ImageParams, "__pydantic_config__", _PARAMS_CONFIG)
188
+
173
189
  Gemini_3_1_Flash_Lite_Preview_SubscriptionParams = TypedDict(
174
190
  "Gemini_3_1_Flash_Lite_Preview_SubscriptionParams",
175
191
  {
@@ -451,6 +467,7 @@ __all__ = [
451
467
  "Gemini_3_Pro_ImageParams",
452
468
  "Gemini_3_1_Flash_ImageParams",
453
469
  "Gemini_3_1_Flash_LiteParams",
470
+ "Gemini_3_1_Flash_Lite_ImageParams",
454
471
  "Gemini_3_1_Flash_Lite_Preview_SubscriptionParams",
455
472
  "Gemini_3_1_Flash_Lite_SubscriptionParams",
456
473
  "Gemini_3_1_Pro_Preview_SubscriptionParams",
File without changes
File without changes
File without changes