modelparams 0.0.28__tar.gz → 0.0.30__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.

Potentially problematic release.


This version of modelparams might be problematic. Click here for more details.

Files changed (33) hide show
  1. {modelparams-0.0.28 → modelparams-0.0.30}/PKG-INFO +1 -1
  2. {modelparams-0.0.28 → modelparams-0.0.30}/pyproject.toml +1 -1
  3. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/_generated/catalog.json +150 -0
  4. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/_generated/model_ids.py +4 -0
  5. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/_generated/registry.py +2 -0
  6. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/alibaba.py +30 -0
  7. {modelparams-0.0.28 → modelparams-0.0.30}/.gitignore +0 -0
  8. {modelparams-0.0.28 → modelparams-0.0.30}/LICENSE +0 -0
  9. {modelparams-0.0.28 → modelparams-0.0.30}/README.md +0 -0
  10. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/anthropic.py +0 -0
  17. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/cerebras.py +0 -0
  18. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/cohere.py +0 -0
  19. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/deepseek.py +0 -0
  20. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/google.py +0 -0
  21. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.28 → modelparams-0.0.30}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.28
3
+ Version: 0.0.30
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.28"
7
+ version = "0.0.30"
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"
@@ -224,6 +224,156 @@
224
224
  }
225
225
  ]
226
226
  },
227
+ {
228
+ "provider": "alibaba",
229
+ "authType": "api_key",
230
+ "model": "glm-5.1",
231
+ "params": [
232
+ {
233
+ "path": "max_completion_tokens",
234
+ "label": "Max tokens",
235
+ "description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
236
+ "group": "generation_length",
237
+ "type": "integer",
238
+ "range": {
239
+ "min": 1
240
+ }
241
+ },
242
+ {
243
+ "path": "temperature",
244
+ "label": "Temperature",
245
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
246
+ "group": "sampling",
247
+ "type": "number",
248
+ "range": {
249
+ "min": 0,
250
+ "max": 1.9,
251
+ "step": 0.1
252
+ }
253
+ },
254
+ {
255
+ "path": "top_p",
256
+ "label": "Top P",
257
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
258
+ "group": "sampling",
259
+ "type": "number",
260
+ "range": {
261
+ "min": 0,
262
+ "max": 1,
263
+ "step": 0.01
264
+ }
265
+ },
266
+ {
267
+ "path": "extra_body.top_k",
268
+ "label": "Top K",
269
+ "description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
270
+ "group": "sampling",
271
+ "type": "integer",
272
+ "default": 20,
273
+ "range": {
274
+ "min": 0
275
+ }
276
+ },
277
+ {
278
+ "path": "extra_body.enable_thinking",
279
+ "label": "Enable thinking",
280
+ "description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
281
+ "group": "reasoning",
282
+ "type": "boolean",
283
+ "default": true
284
+ },
285
+ {
286
+ "path": "extra_body.thinking_budget",
287
+ "label": "Thinking budget",
288
+ "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.",
289
+ "group": "reasoning",
290
+ "applicability": {
291
+ "only": {
292
+ "extra_body.enable_thinking": true
293
+ }
294
+ },
295
+ "type": "integer",
296
+ "range": {
297
+ "min": 1
298
+ }
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ "provider": "alibaba",
304
+ "authType": "api_key",
305
+ "model": "kimi-k2.7-code",
306
+ "params": [
307
+ {
308
+ "path": "max_completion_tokens",
309
+ "label": "Max tokens",
310
+ "description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
311
+ "group": "generation_length",
312
+ "type": "integer",
313
+ "range": {
314
+ "min": 1
315
+ }
316
+ },
317
+ {
318
+ "path": "temperature",
319
+ "label": "Temperature",
320
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
321
+ "group": "sampling",
322
+ "type": "number",
323
+ "range": {
324
+ "min": 0,
325
+ "max": 1.9,
326
+ "step": 0.1
327
+ }
328
+ },
329
+ {
330
+ "path": "top_p",
331
+ "label": "Top P",
332
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
333
+ "group": "sampling",
334
+ "type": "number",
335
+ "range": {
336
+ "min": 0,
337
+ "max": 1,
338
+ "step": 0.01
339
+ }
340
+ },
341
+ {
342
+ "path": "extra_body.top_k",
343
+ "label": "Top K",
344
+ "description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
345
+ "group": "sampling",
346
+ "type": "integer",
347
+ "default": 20,
348
+ "range": {
349
+ "min": 0
350
+ }
351
+ },
352
+ {
353
+ "path": "extra_body.enable_thinking",
354
+ "label": "Enable thinking",
355
+ "description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
356
+ "group": "reasoning",
357
+ "type": "boolean",
358
+ "default": true
359
+ },
360
+ {
361
+ "path": "extra_body.thinking_budget",
362
+ "label": "Thinking budget",
363
+ "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.",
364
+ "group": "reasoning",
365
+ "applicability": {
366
+ "only": {
367
+ "extra_body.enable_thinking": true
368
+ }
369
+ },
370
+ "type": "integer",
371
+ "range": {
372
+ "min": 1
373
+ }
374
+ }
375
+ ]
376
+ },
227
377
  {
228
378
  "provider": "alibaba",
229
379
  "authType": "api_key",
@@ -7,6 +7,8 @@ ModelId = Literal[
7
7
  "alibaba/deepseek-v3.2",
8
8
  "alibaba/deepseek-v4-flash-0731",
9
9
  "alibaba/deepseek-v4-pro-0813",
10
+ "alibaba/glm-5.1",
11
+ "alibaba/kimi-k2.7-code",
10
12
  "alibaba/qwen-flash",
11
13
  "alibaba/qwen-max",
12
14
  "alibaba/qwen-plus",
@@ -294,6 +296,8 @@ MODEL_IDS: tuple[ModelId, ...] = (
294
296
  "alibaba/deepseek-v3.2",
295
297
  "alibaba/deepseek-v4-flash-0731",
296
298
  "alibaba/deepseek-v4-pro-0813",
299
+ "alibaba/glm-5.1",
300
+ "alibaba/kimi-k2.7-code",
297
301
  "alibaba/qwen-flash",
298
302
  "alibaba/qwen-max",
299
303
  "alibaba/qwen-plus",
@@ -28,6 +28,8 @@ PARAM_TYPES: dict[ModelId, Any] = {
28
28
  "alibaba/deepseek-v3.2": alibaba.Deepseek_V3_2Params,
29
29
  "alibaba/deepseek-v4-flash-0731": alibaba.Deepseek_V4_Flash_0731Params,
30
30
  "alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
31
+ "alibaba/glm-5.1": alibaba.Glm_5_1Params,
32
+ "alibaba/kimi-k2.7-code": alibaba.Kimi_K2_7_CodeParams,
31
33
  "alibaba/qwen-flash": alibaba.Qwen_FlashParams,
32
34
  "alibaba/qwen-max": alibaba.Qwen_MaxParams,
33
35
  "alibaba/qwen-plus": alibaba.Qwen_PlusParams,
@@ -52,6 +52,34 @@ Deepseek_V4_Pro_0813Params = TypedDict(
52
52
  )
53
53
  setattr(Deepseek_V4_Pro_0813Params, "__pydantic_config__", _PARAMS_CONFIG)
54
54
 
55
+ Glm_5_1Params = TypedDict(
56
+ "Glm_5_1Params",
57
+ {
58
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
59
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
60
+ "top_p": Annotated[float, Field(ge=0, le=1)],
61
+ "extra_body.top_k": Annotated[int, Field(ge=0)],
62
+ "extra_body.enable_thinking": bool,
63
+ "extra_body.thinking_budget": Annotated[int, Field(ge=1)],
64
+ },
65
+ total=False,
66
+ )
67
+ setattr(Glm_5_1Params, "__pydantic_config__", _PARAMS_CONFIG)
68
+
69
+ Kimi_K2_7_CodeParams = TypedDict(
70
+ "Kimi_K2_7_CodeParams",
71
+ {
72
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
73
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
74
+ "top_p": Annotated[float, Field(ge=0, le=1)],
75
+ "extra_body.top_k": Annotated[int, Field(ge=0)],
76
+ "extra_body.enable_thinking": bool,
77
+ "extra_body.thinking_budget": Annotated[int, Field(ge=1)],
78
+ },
79
+ total=False,
80
+ )
81
+ setattr(Kimi_K2_7_CodeParams, "__pydantic_config__", _PARAMS_CONFIG)
82
+
55
83
  Qwen_FlashParams = TypedDict(
56
84
  "Qwen_FlashParams",
57
85
  {
@@ -464,6 +492,8 @@ __all__ = [
464
492
  "Deepseek_V3_2Params",
465
493
  "Deepseek_V4_Flash_0731Params",
466
494
  "Deepseek_V4_Pro_0813Params",
495
+ "Glm_5_1Params",
496
+ "Kimi_K2_7_CodeParams",
467
497
  "Qwen_FlashParams",
468
498
  "Qwen_MaxParams",
469
499
  "Qwen_PlusParams",
File without changes
File without changes
File without changes