modelparams 0.0.5__tar.gz → 0.0.7__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.5 → modelparams-0.0.7}/PKG-INFO +1 -1
  2. {modelparams-0.0.5 → modelparams-0.0.7}/pyproject.toml +1 -1
  3. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/__init__.py +2 -0
  4. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/_generated/catalog.json +144 -0
  5. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/_generated/model_ids.py +2 -0
  6. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/_generated/registry.py +1 -0
  7. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/models.py +9 -0
  8. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/anthropic.py +1 -1
  9. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/meta.py +18 -0
  10. {modelparams-0.0.5 → modelparams-0.0.7}/.gitignore +0 -0
  11. {modelparams-0.0.5 → modelparams-0.0.7}/LICENSE +0 -0
  12. {modelparams-0.0.5 → modelparams-0.0.7}/README.md +0 -0
  13. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/_generated/__init__.py +0 -0
  14. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/catalog.py +0 -0
  15. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/py.typed +0 -0
  16. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/__init__.py +0 -0
  17. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/alibaba.py +0 -0
  18. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/cerebras.py +0 -0
  19. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/cohere.py +0 -0
  20. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/deepseek.py +0 -0
  21. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/google.py +0 -0
  22. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/groq.py +0 -0
  23. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.5 → modelparams-0.0.7}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.5
3
+ Version: 0.0.7
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.5"
7
+ version = "0.0.7"
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"
@@ -16,6 +16,7 @@ from .models import (
16
16
  ApplicabilityCondition,
17
17
  CatalogEntry,
18
18
  JsonPrimitive,
19
+ ParamDeprecation,
19
20
  Parameter,
20
21
  ParamGroup,
21
22
  ParamRange,
@@ -44,6 +45,7 @@ __all__ = [
44
45
  "CatalogEntry",
45
46
  "JsonPrimitive",
46
47
  "ModelId",
48
+ "ParamDeprecation",
47
49
  "Parameter",
48
50
  "ParamGroup",
49
51
  "ParamRange",
@@ -5152,6 +5152,11 @@
5152
5152
  }
5153
5153
  ]
5154
5154
  },
5155
+ "deprecated": {
5156
+ "behavior": "default-only",
5157
+ "since": "2026-08-17",
5158
+ "note": "The API now rejects non-default values (\"`temperature` is deprecated for this model\"); only the default value 1 is accepted. Verified working 2026-07-11."
5159
+ },
5155
5160
  "type": "number",
5156
5161
  "default": 1,
5157
5162
  "range": {
@@ -5179,6 +5184,11 @@
5179
5184
  }
5180
5185
  ]
5181
5186
  },
5187
+ "deprecated": {
5188
+ "behavior": "default-only",
5189
+ "since": "2026-08-17",
5190
+ "note": "The API now rejects non-default values (\"`top_p` is deprecated for this model\"); only the default value 1 is accepted. Verified working 2026-07-11."
5191
+ },
5182
5192
  "type": "number",
5183
5193
  "default": 1,
5184
5194
  "range": {
@@ -5199,6 +5209,11 @@
5199
5209
  ]
5200
5210
  }
5201
5211
  },
5212
+ "deprecated": {
5213
+ "behavior": "default-only",
5214
+ "since": "2026-08-17",
5215
+ "note": "The API now rejects non-default values (\"`top_k` is deprecated for this model\"); only the default value 0 is accepted. Verified working 2026-07-11."
5216
+ },
5202
5217
  "type": "integer",
5203
5218
  "default": 0,
5204
5219
  "range": {
@@ -5247,6 +5262,7 @@
5247
5262
  "low",
5248
5263
  "medium",
5249
5264
  "high",
5265
+ "xhigh",
5250
5266
  "max"
5251
5267
  ]
5252
5268
  }
@@ -9053,6 +9069,134 @@
9053
9069
  }
9054
9070
  ]
9055
9071
  },
9072
+ {
9073
+ "provider": "meta",
9074
+ "authType": "api_key",
9075
+ "model": "muse-spark-1.1",
9076
+ "params": [
9077
+ {
9078
+ "path": "max_completion_tokens",
9079
+ "label": "Max tokens",
9080
+ "description": "Maximum number of output tokens the model may generate.",
9081
+ "group": "generation_length",
9082
+ "type": "integer",
9083
+ "range": {
9084
+ "min": 1
9085
+ }
9086
+ },
9087
+ {
9088
+ "path": "reasoning_effort",
9089
+ "label": "Reasoning effort",
9090
+ "description": "Controls how much reasoning the model should perform before producing an answer.",
9091
+ "group": "reasoning",
9092
+ "type": "enum",
9093
+ "values": [
9094
+ "minimal",
9095
+ "low",
9096
+ "medium",
9097
+ "high",
9098
+ "xhigh"
9099
+ ]
9100
+ },
9101
+ {
9102
+ "path": "temperature",
9103
+ "label": "Temperature",
9104
+ "description": "Controls randomness; use this or Top P, but not both.",
9105
+ "group": "sampling",
9106
+ "applicability": {
9107
+ "except": {
9108
+ "top_p": {
9109
+ "not": 1
9110
+ }
9111
+ }
9112
+ },
9113
+ "type": "number",
9114
+ "default": 1,
9115
+ "range": {
9116
+ "min": 0,
9117
+ "max": 2,
9118
+ "step": 0.1
9119
+ }
9120
+ },
9121
+ {
9122
+ "path": "top_p",
9123
+ "label": "Top P",
9124
+ "description": "Controls nucleus sampling; use this or Temperature, but not both.",
9125
+ "group": "sampling",
9126
+ "applicability": {
9127
+ "except": {
9128
+ "temperature": {
9129
+ "not": 1
9130
+ }
9131
+ }
9132
+ },
9133
+ "type": "number",
9134
+ "default": 1,
9135
+ "range": {
9136
+ "min": 0.01,
9137
+ "max": 1,
9138
+ "step": 0.01
9139
+ }
9140
+ },
9141
+ {
9142
+ "path": "frequency_penalty",
9143
+ "label": "Frequency penalty",
9144
+ "description": "Penalizes tokens in proportion to how often they have appeared, reducing repetition.",
9145
+ "group": "sampling",
9146
+ "type": "number",
9147
+ "default": 0,
9148
+ "range": {
9149
+ "min": -2,
9150
+ "max": 2,
9151
+ "step": 0.1
9152
+ }
9153
+ },
9154
+ {
9155
+ "path": "presence_penalty",
9156
+ "label": "Presence penalty",
9157
+ "description": "Penalizes tokens that have already appeared, encouraging new topics.",
9158
+ "group": "sampling",
9159
+ "type": "number",
9160
+ "default": 0,
9161
+ "range": {
9162
+ "min": -2,
9163
+ "max": 2,
9164
+ "step": 0.1
9165
+ }
9166
+ },
9167
+ {
9168
+ "path": "seed",
9169
+ "label": "Random seed",
9170
+ "description": "Requests best-effort deterministic sampling for repeated requests.",
9171
+ "group": "sampling",
9172
+ "type": "integer"
9173
+ },
9174
+ {
9175
+ "path": "response_format.type",
9176
+ "label": "Response format",
9177
+ "description": "Controls whether the model returns text, JSON, or schema-constrained JSON.",
9178
+ "group": "output_format",
9179
+ "type": "enum",
9180
+ "default": "text",
9181
+ "values": [
9182
+ "text",
9183
+ "json_object",
9184
+ "json_schema"
9185
+ ]
9186
+ },
9187
+ {
9188
+ "path": "prompt_cache_retention",
9189
+ "label": "Prompt cache retention",
9190
+ "description": "Controls whether the prompt cache stays in memory or persists for up to 24 hours.",
9191
+ "group": "provider_metadata",
9192
+ "type": "enum",
9193
+ "values": [
9194
+ "in_memory",
9195
+ "24h"
9196
+ ]
9197
+ }
9198
+ ]
9199
+ },
9056
9200
  {
9057
9201
  "provider": "meta",
9058
9202
  "authType": "api_key",
@@ -99,6 +99,7 @@ ModelId = Literal[
99
99
  "meta/Llama-3.3-8B-Instruct",
100
100
  "meta/Llama-4-Maverick-17B-128E-Instruct-FP8",
101
101
  "meta/Llama-4-Scout-17B-16E-Instruct-FP8",
102
+ "meta/muse-spark-1.1",
102
103
  "meta/muse-spark-1.2-contributor",
103
104
  "minimax/minimax-m2",
104
105
  "minimax/MiniMax-M2-subscription",
@@ -347,6 +348,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
347
348
  "meta/Llama-3.3-8B-Instruct",
348
349
  "meta/Llama-4-Maverick-17B-128E-Instruct-FP8",
349
350
  "meta/Llama-4-Scout-17B-16E-Instruct-FP8",
351
+ "meta/muse-spark-1.1",
350
352
  "meta/muse-spark-1.2-contributor",
351
353
  "minimax/minimax-m2",
352
354
  "minimax/MiniMax-M2-subscription",
@@ -120,6 +120,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
120
120
  "meta/Llama-3.3-8B-Instruct": meta.Llama_3_3_8b_InstructParams,
121
121
  "meta/Llama-4-Maverick-17B-128E-Instruct-FP8": meta.Llama_4_Maverick_17b_128e_Instruct_Fp8Params,
122
122
  "meta/Llama-4-Scout-17B-16E-Instruct-FP8": meta.Llama_4_Scout_17b_16e_Instruct_Fp8Params,
123
+ "meta/muse-spark-1.1": meta.Muse_Spark_1_1Params,
123
124
  "meta/muse-spark-1.2-contributor": meta.Muse_Spark_1_2_ContributorParams,
124
125
  "minimax/minimax-m2": minimax.Minimax_M2Params,
125
126
  "minimax/MiniMax-M2-subscription": minimax.Minimax_M2_SubscriptionParams,
@@ -43,6 +43,14 @@ class Applicability(FrozenModel):
43
43
  except_: ApplicabilityRuleSet | None = Field(default=None, alias="except")
44
44
 
45
45
 
46
+ class ParamDeprecation(FrozenModel):
47
+ """The provider stopped honoring the param for this model id (see the site schema)."""
48
+
49
+ behavior: Literal["rejected", "ignored", "default-only"]
50
+ since: str | None = None
51
+ note: str | None = None
52
+
53
+
46
54
  class Parameter(FrozenModel):
47
55
  path: str
48
56
  label: str
@@ -53,6 +61,7 @@ class Parameter(FrozenModel):
53
61
  range: ParamRange | None = None
54
62
  values: tuple[JsonPrimitive, ...] | None = None
55
63
  applicability: Applicability | None = None
64
+ deprecated: ParamDeprecation | None = None
56
65
 
57
66
 
58
67
  class CatalogEntry(FrozenModel):
@@ -569,7 +569,7 @@ Claude_Sonnet_5Params = TypedDict(
569
569
  "top_k": Annotated[int, Field(ge=0)],
570
570
  "thinking.type": Literal["disabled", "adaptive"],
571
571
  "thinking.display": Literal["summarized", "omitted"],
572
- "output_config.effort": Literal["low", "medium", "high", "max"],
572
+ "output_config.effort": Literal["low", "medium", "high", "xhigh", "max"],
573
573
  },
574
574
  total=False,
575
575
  )
@@ -70,6 +70,23 @@ Llama_4_Scout_17b_16e_Instruct_Fp8Params = TypedDict(
70
70
  )
71
71
  setattr(Llama_4_Scout_17b_16e_Instruct_Fp8Params, "__pydantic_config__", _PARAMS_CONFIG)
72
72
 
73
+ Muse_Spark_1_1Params = TypedDict(
74
+ "Muse_Spark_1_1Params",
75
+ {
76
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
77
+ "reasoning_effort": Literal["minimal", "low", "medium", "high", "xhigh"],
78
+ "temperature": Annotated[float, Field(ge=0, le=2)],
79
+ "top_p": Annotated[float, Field(ge=0.01, le=1)],
80
+ "frequency_penalty": Annotated[float, Field(ge=-2, le=2)],
81
+ "presence_penalty": Annotated[float, Field(ge=-2, le=2)],
82
+ "seed": int,
83
+ "response_format.type": Literal["text", "json_object", "json_schema"],
84
+ "prompt_cache_retention": Literal["in_memory", "24h"],
85
+ },
86
+ total=False,
87
+ )
88
+ setattr(Muse_Spark_1_1Params, "__pydantic_config__", _PARAMS_CONFIG)
89
+
73
90
  Muse_Spark_1_2_ContributorParams = TypedDict(
74
91
  "Muse_Spark_1_2_ContributorParams",
75
92
  {
@@ -92,5 +109,6 @@ __all__ = [
92
109
  "Llama_3_3_8b_InstructParams",
93
110
  "Llama_4_Maverick_17b_128e_Instruct_Fp8Params",
94
111
  "Llama_4_Scout_17b_16e_Instruct_Fp8Params",
112
+ "Muse_Spark_1_1Params",
95
113
  "Muse_Spark_1_2_ContributorParams",
96
114
  ]
File without changes
File without changes
File without changes