modelparams 0.0.8__tar.gz → 0.0.10__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.8 → modelparams-0.0.10}/PKG-INFO +1 -1
  2. {modelparams-0.0.8 → modelparams-0.0.10}/pyproject.toml +1 -1
  3. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/_generated/catalog.json +100 -12
  4. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/_generated/model_ids.py +4 -0
  5. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/_generated/registry.py +2 -0
  6. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/alibaba.py +12 -12
  7. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/openai.py +24 -0
  8. {modelparams-0.0.8 → modelparams-0.0.10}/.gitignore +0 -0
  9. {modelparams-0.0.8 → modelparams-0.0.10}/LICENSE +0 -0
  10. {modelparams-0.0.8 → modelparams-0.0.10}/README.md +0 -0
  11. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/__init__.py +0 -0
  12. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/_generated/__init__.py +0 -0
  13. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/catalog.py +0 -0
  14. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/models.py +0 -0
  15. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/py.typed +0 -0
  16. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/__init__.py +0 -0
  17. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/anthropic.py +0 -0
  18. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/cerebras.py +0 -0
  19. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/cohere.py +0 -0
  20. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/deepseek.py +0 -0
  21. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/google.py +0 -0
  22. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/groq.py +0 -0
  23. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/meta.py +0 -0
  24. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/minimax.py +0 -0
  25. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/mistral.py +0 -0
  26. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/moonshot.py +0 -0
  27. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/nvidia.py +0 -0
  28. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.8 → modelparams-0.0.10}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.8
3
+ Version: 0.0.10
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.8"
7
+ version = "0.0.10"
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"
@@ -22,7 +22,7 @@
22
22
  "type": "number",
23
23
  "range": {
24
24
  "min": 0,
25
- "max": 2,
25
+ "max": 1.9,
26
26
  "step": 0.1
27
27
  }
28
28
  },
@@ -82,7 +82,7 @@
82
82
  "type": "number",
83
83
  "range": {
84
84
  "min": 0,
85
- "max": 2,
85
+ "max": 1.9,
86
86
  "step": 0.1
87
87
  }
88
88
  },
@@ -142,7 +142,7 @@
142
142
  "type": "number",
143
143
  "range": {
144
144
  "min": 0,
145
- "max": 2,
145
+ "max": 1.9,
146
146
  "step": 0.1
147
147
  }
148
148
  },
@@ -194,7 +194,7 @@
194
194
  "type": "number",
195
195
  "range": {
196
196
  "min": 0,
197
- "max": 2,
197
+ "max": 1.9,
198
198
  "step": 0.1
199
199
  }
200
200
  },
@@ -246,7 +246,7 @@
246
246
  "type": "number",
247
247
  "range": {
248
248
  "min": 0,
249
- "max": 2,
249
+ "max": 1.9,
250
250
  "step": 0.1
251
251
  }
252
252
  },
@@ -306,7 +306,7 @@
306
306
  "type": "number",
307
307
  "range": {
308
308
  "min": 0,
309
- "max": 2,
309
+ "max": 1.9,
310
310
  "step": 0.1
311
311
  }
312
312
  },
@@ -366,7 +366,7 @@
366
366
  "type": "number",
367
367
  "range": {
368
368
  "min": 0,
369
- "max": 2,
369
+ "max": 1.9,
370
370
  "step": 0.1
371
371
  }
372
372
  },
@@ -426,7 +426,7 @@
426
426
  "type": "number",
427
427
  "range": {
428
428
  "min": 0,
429
- "max": 2,
429
+ "max": 1.9,
430
430
  "step": 0.1
431
431
  }
432
432
  },
@@ -501,7 +501,7 @@
501
501
  "type": "number",
502
502
  "range": {
503
503
  "min": 0,
504
- "max": 2,
504
+ "max": 1.9,
505
505
  "step": 0.1
506
506
  }
507
507
  },
@@ -576,7 +576,7 @@
576
576
  "type": "number",
577
577
  "range": {
578
578
  "min": 0,
579
- "max": 2,
579
+ "max": 1.9,
580
580
  "step": 0.1
581
581
  }
582
582
  },
@@ -651,7 +651,7 @@
651
651
  "type": "number",
652
652
  "range": {
653
653
  "min": 0,
654
- "max": 2,
654
+ "max": 1.9,
655
655
  "step": 0.1
656
656
  }
657
657
  },
@@ -726,7 +726,7 @@
726
726
  "type": "number",
727
727
  "range": {
728
728
  "min": 0,
729
- "max": 2,
729
+ "max": 1.9,
730
730
  "step": 0.1
731
731
  }
732
732
  },
@@ -13267,6 +13267,94 @@
13267
13267
  }
13268
13268
  ]
13269
13269
  },
13270
+ {
13271
+ "provider": "openai",
13272
+ "authType": "api_key",
13273
+ "model": "gpt-3.5-turbo-16k",
13274
+ "params": [
13275
+ {
13276
+ "path": "max_tokens",
13277
+ "label": "Max tokens",
13278
+ "description": "Maximum number of output tokens the model may generate.",
13279
+ "group": "generation_length",
13280
+ "type": "integer",
13281
+ "default": 4096,
13282
+ "range": {
13283
+ "min": 1
13284
+ }
13285
+ },
13286
+ {
13287
+ "path": "temperature",
13288
+ "label": "Temperature",
13289
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
13290
+ "group": "sampling",
13291
+ "type": "number",
13292
+ "default": 1,
13293
+ "range": {
13294
+ "min": 0,
13295
+ "max": 2,
13296
+ "step": 0.1
13297
+ }
13298
+ },
13299
+ {
13300
+ "path": "top_p",
13301
+ "label": "Top P",
13302
+ "description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
13303
+ "group": "sampling",
13304
+ "type": "number",
13305
+ "default": 1,
13306
+ "range": {
13307
+ "min": 0,
13308
+ "max": 1,
13309
+ "step": 0.01
13310
+ }
13311
+ }
13312
+ ]
13313
+ },
13314
+ {
13315
+ "provider": "openai",
13316
+ "authType": "api_key",
13317
+ "model": "gpt-4-0613",
13318
+ "params": [
13319
+ {
13320
+ "path": "max_tokens",
13321
+ "label": "Max tokens",
13322
+ "description": "Maximum number of output tokens the model may generate.",
13323
+ "group": "generation_length",
13324
+ "type": "integer",
13325
+ "default": 4096,
13326
+ "range": {
13327
+ "min": 1
13328
+ }
13329
+ },
13330
+ {
13331
+ "path": "temperature",
13332
+ "label": "Temperature",
13333
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
13334
+ "group": "sampling",
13335
+ "type": "number",
13336
+ "default": 1,
13337
+ "range": {
13338
+ "min": 0,
13339
+ "max": 2,
13340
+ "step": 0.1
13341
+ }
13342
+ },
13343
+ {
13344
+ "path": "top_p",
13345
+ "label": "Top P",
13346
+ "description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
13347
+ "group": "sampling",
13348
+ "type": "number",
13349
+ "default": 1,
13350
+ "range": {
13351
+ "min": 0,
13352
+ "max": 1,
13353
+ "step": 0.01
13354
+ }
13355
+ }
13356
+ ]
13357
+ },
13270
13358
  {
13271
13359
  "provider": "openai",
13272
13360
  "authType": "api_key",
@@ -160,6 +160,8 @@ ModelId = Literal[
160
160
  "nvidia/usdcode-llama-3.1-70b-instruct",
161
161
  "openai/chatgpt-4o-latest",
162
162
  "openai/gpt-3.5-turbo",
163
+ "openai/gpt-3.5-turbo-16k",
164
+ "openai/gpt-4-0613",
163
165
  "openai/gpt-4-turbo",
164
166
  "openai/gpt-4-turbo-2024-04-09",
165
167
  "openai/gpt-4.1",
@@ -409,6 +411,8 @@ MODEL_IDS: tuple[ModelId, ...] = (
409
411
  "nvidia/usdcode-llama-3.1-70b-instruct",
410
412
  "openai/chatgpt-4o-latest",
411
413
  "openai/gpt-3.5-turbo",
414
+ "openai/gpt-3.5-turbo-16k",
415
+ "openai/gpt-4-0613",
412
416
  "openai/gpt-4-turbo",
413
417
  "openai/gpt-4-turbo-2024-04-09",
414
418
  "openai/gpt-4.1",
@@ -181,6 +181,8 @@ PARAM_TYPES: dict[ModelId, Any] = {
181
181
  "nvidia/usdcode-llama-3.1-70b-instruct": nvidia.Usdcode_Llama_3_1_70b_InstructParams,
182
182
  "openai/chatgpt-4o-latest": openai.Chatgpt_4o_LatestParams,
183
183
  "openai/gpt-3.5-turbo": openai.Gpt_3_5_TurboParams,
184
+ "openai/gpt-3.5-turbo-16k": openai.Gpt_3_5_Turbo_16kParams,
185
+ "openai/gpt-4-0613": openai.Gpt_4_0613Params,
184
186
  "openai/gpt-4-turbo": openai.Gpt_4_TurboParams,
185
187
  "openai/gpt-4-turbo-2024-04-09": openai.Gpt_4_Turbo_2024_04_09Params,
186
188
  "openai/gpt-4.1": openai.Gpt_4_1Params,
@@ -14,7 +14,7 @@ Qwen_FlashParams = TypedDict(
14
14
  "Qwen_FlashParams",
15
15
  {
16
16
  "max_tokens": Annotated[int, Field(ge=1)],
17
- "temperature": Annotated[float, Field(ge=0, le=2)],
17
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
18
18
  "top_p": Annotated[float, Field(ge=0, le=1)],
19
19
  "extra_body.top_k": Annotated[int, Field(ge=1)],
20
20
  "extra_body.chat_template_kwargs.enable_thinking": bool,
@@ -27,7 +27,7 @@ Qwen_PlusParams = TypedDict(
27
27
  "Qwen_PlusParams",
28
28
  {
29
29
  "max_tokens": Annotated[int, Field(ge=1)],
30
- "temperature": Annotated[float, Field(ge=0, le=2)],
30
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
31
31
  "top_p": Annotated[float, Field(ge=0, le=1)],
32
32
  "extra_body.top_k": Annotated[int, Field(ge=1)],
33
33
  "extra_body.chat_template_kwargs.enable_thinking": bool,
@@ -40,7 +40,7 @@ Qwen3_Coder_FlashParams = TypedDict(
40
40
  "Qwen3_Coder_FlashParams",
41
41
  {
42
42
  "max_tokens": Annotated[int, Field(ge=1)],
43
- "temperature": Annotated[float, Field(ge=0, le=2)],
43
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
44
44
  "top_p": Annotated[float, Field(ge=0, le=1)],
45
45
  "extra_body.top_k": Annotated[int, Field(ge=1)],
46
46
  },
@@ -52,7 +52,7 @@ Qwen3_Coder_PlusParams = TypedDict(
52
52
  "Qwen3_Coder_PlusParams",
53
53
  {
54
54
  "max_tokens": Annotated[int, Field(ge=1)],
55
- "temperature": Annotated[float, Field(ge=0, le=2)],
55
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
56
56
  "top_p": Annotated[float, Field(ge=0, le=1)],
57
57
  "extra_body.top_k": Annotated[int, Field(ge=1)],
58
58
  },
@@ -64,7 +64,7 @@ Qwen3_MaxParams = TypedDict(
64
64
  "Qwen3_MaxParams",
65
65
  {
66
66
  "max_tokens": Annotated[int, Field(ge=1)],
67
- "temperature": Annotated[float, Field(ge=0, le=2)],
67
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
68
68
  "top_p": Annotated[float, Field(ge=0, le=1)],
69
69
  "extra_body.top_k": Annotated[int, Field(ge=1)],
70
70
  "extra_body.chat_template_kwargs.enable_thinking": bool,
@@ -77,7 +77,7 @@ Qwen3_5Params = TypedDict(
77
77
  "Qwen3_5Params",
78
78
  {
79
79
  "max_tokens": Annotated[int, Field(ge=1)],
80
- "temperature": Annotated[float, Field(ge=0, le=2)],
80
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
81
81
  "top_p": Annotated[float, Field(ge=0, le=1)],
82
82
  "extra_body.top_k": Annotated[int, Field(ge=1)],
83
83
  "extra_body.chat_template_kwargs.enable_thinking": bool,
@@ -90,7 +90,7 @@ Qwen3_5_FlashParams = TypedDict(
90
90
  "Qwen3_5_FlashParams",
91
91
  {
92
92
  "max_tokens": Annotated[int, Field(ge=1)],
93
- "temperature": Annotated[float, Field(ge=0, le=2)],
93
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
94
94
  "top_p": Annotated[float, Field(ge=0, le=1)],
95
95
  "extra_body.top_k": Annotated[int, Field(ge=1)],
96
96
  "extra_body.chat_template_kwargs.enable_thinking": bool,
@@ -103,7 +103,7 @@ Qwen3_6_FlashParams = TypedDict(
103
103
  "Qwen3_6_FlashParams",
104
104
  {
105
105
  "max_completion_tokens": Annotated[int, Field(ge=1)],
106
- "temperature": Annotated[float, Field(ge=0, le=2)],
106
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
107
107
  "top_p": Annotated[float, Field(ge=0, le=1)],
108
108
  "extra_body.top_k": Annotated[int, Field(ge=0)],
109
109
  "extra_body.enable_thinking": bool,
@@ -117,7 +117,7 @@ Qwen3_7_MaxParams = TypedDict(
117
117
  "Qwen3_7_MaxParams",
118
118
  {
119
119
  "max_completion_tokens": Annotated[int, Field(ge=1)],
120
- "temperature": Annotated[float, Field(ge=0, le=2)],
120
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
121
121
  "top_p": Annotated[float, Field(ge=0, le=1)],
122
122
  "extra_body.top_k": Annotated[int, Field(ge=0)],
123
123
  "extra_body.enable_thinking": bool,
@@ -131,7 +131,7 @@ Qwen3_7_PlusParams = TypedDict(
131
131
  "Qwen3_7_PlusParams",
132
132
  {
133
133
  "max_completion_tokens": Annotated[int, Field(ge=1)],
134
- "temperature": Annotated[float, Field(ge=0, le=2)],
134
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
135
135
  "top_p": Annotated[float, Field(ge=0, le=1)],
136
136
  "extra_body.top_k": Annotated[int, Field(ge=0)],
137
137
  "extra_body.enable_thinking": bool,
@@ -145,7 +145,7 @@ Qwen3_8_MaxParams = TypedDict(
145
145
  "Qwen3_8_MaxParams",
146
146
  {
147
147
  "max_completion_tokens": Annotated[int, Field(ge=1)],
148
- "temperature": Annotated[float, Field(ge=0, le=2)],
148
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
149
149
  "top_p": Annotated[float, Field(ge=0, le=1)],
150
150
  "extra_body.top_k": Annotated[int, Field(ge=0)],
151
151
  "extra_body.enable_thinking": bool,
@@ -159,7 +159,7 @@ Qwq_PlusParams = TypedDict(
159
159
  "Qwq_PlusParams",
160
160
  {
161
161
  "max_tokens": Annotated[int, Field(ge=1)],
162
- "temperature": Annotated[float, Field(ge=0, le=2)],
162
+ "temperature": Annotated[float, Field(ge=0, le=1.9)],
163
163
  "top_p": Annotated[float, Field(ge=0, le=1)],
164
164
  "extra_body.top_k": Annotated[int, Field(ge=1)],
165
165
  },
@@ -32,6 +32,28 @@ Gpt_3_5_TurboParams = TypedDict(
32
32
  )
33
33
  setattr(Gpt_3_5_TurboParams, "__pydantic_config__", _PARAMS_CONFIG)
34
34
 
35
+ Gpt_3_5_Turbo_16kParams = TypedDict(
36
+ "Gpt_3_5_Turbo_16kParams",
37
+ {
38
+ "max_tokens": Annotated[int, Field(ge=1)],
39
+ "temperature": Annotated[float, Field(ge=0, le=2)],
40
+ "top_p": Annotated[float, Field(ge=0, le=1)],
41
+ },
42
+ total=False,
43
+ )
44
+ setattr(Gpt_3_5_Turbo_16kParams, "__pydantic_config__", _PARAMS_CONFIG)
45
+
46
+ Gpt_4_0613Params = TypedDict(
47
+ "Gpt_4_0613Params",
48
+ {
49
+ "max_tokens": Annotated[int, Field(ge=1)],
50
+ "temperature": Annotated[float, Field(ge=0, le=2)],
51
+ "top_p": Annotated[float, Field(ge=0, le=1)],
52
+ },
53
+ total=False,
54
+ )
55
+ setattr(Gpt_4_0613Params, "__pydantic_config__", _PARAMS_CONFIG)
56
+
35
57
  Gpt_4_TurboParams = TypedDict(
36
58
  "Gpt_4_TurboParams",
37
59
  {
@@ -558,6 +580,8 @@ setattr(O4_MiniParams, "__pydantic_config__", _PARAMS_CONFIG)
558
580
  __all__ = [
559
581
  "Chatgpt_4o_LatestParams",
560
582
  "Gpt_3_5_TurboParams",
583
+ "Gpt_3_5_Turbo_16kParams",
584
+ "Gpt_4_0613Params",
561
585
  "Gpt_4_TurboParams",
562
586
  "Gpt_4_Turbo_2024_04_09Params",
563
587
  "Gpt_4_1Params",
File without changes
File without changes
File without changes