modelparams 0.0.23__tar.gz → 0.0.25__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.23 → modelparams-0.0.25}/PKG-INFO +1 -1
  2. {modelparams-0.0.23 → modelparams-0.0.25}/pyproject.toml +1 -1
  3. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/_generated/catalog.json +190 -0
  4. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/_generated/model_ids.py +4 -0
  5. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/_generated/registry.py +2 -0
  6. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/google.py +34 -0
  7. {modelparams-0.0.23 → modelparams-0.0.25}/.gitignore +0 -0
  8. {modelparams-0.0.23 → modelparams-0.0.25}/LICENSE +0 -0
  9. {modelparams-0.0.23 → modelparams-0.0.25}/README.md +0 -0
  10. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/alibaba.py +0 -0
  17. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/anthropic.py +0 -0
  18. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/cerebras.py +0 -0
  19. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/cohere.py +0 -0
  20. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/deepseek.py +0 -0
  21. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.23 → modelparams-0.0.25}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.23
3
+ Version: 0.0.25
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.23"
7
+ version = "0.0.25"
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"
@@ -8861,6 +8861,196 @@
8861
8861
  }
8862
8862
  ]
8863
8863
  },
8864
+ {
8865
+ "provider": "google",
8866
+ "authType": "api_key",
8867
+ "model": "gemini-3-pro-image",
8868
+ "params": [
8869
+ {
8870
+ "path": "generationConfig.maxOutputTokens",
8871
+ "label": "Max output tokens",
8872
+ "description": "Maximum number of tokens to include in a response candidate.",
8873
+ "group": "generation_length",
8874
+ "type": "integer",
8875
+ "range": {
8876
+ "min": 1,
8877
+ "max": 65536
8878
+ }
8879
+ },
8880
+ {
8881
+ "path": "generationConfig.temperature",
8882
+ "label": "Temperature",
8883
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
8884
+ "group": "sampling",
8885
+ "type": "number",
8886
+ "default": 1,
8887
+ "range": {
8888
+ "min": 0,
8889
+ "max": 2,
8890
+ "step": 0.1
8891
+ }
8892
+ },
8893
+ {
8894
+ "path": "generationConfig.topP",
8895
+ "label": "Top P",
8896
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
8897
+ "group": "sampling",
8898
+ "type": "number",
8899
+ "default": 0.95,
8900
+ "range": {
8901
+ "min": 0,
8902
+ "max": 1,
8903
+ "step": 0.01
8904
+ }
8905
+ },
8906
+ {
8907
+ "path": "generationConfig.topK",
8908
+ "label": "Top K",
8909
+ "description": "Limits token sampling to the top K most likely next tokens.",
8910
+ "group": "sampling",
8911
+ "type": "integer",
8912
+ "default": 64,
8913
+ "range": {
8914
+ "min": 0
8915
+ }
8916
+ },
8917
+ {
8918
+ "path": "generationConfig.seed",
8919
+ "label": "Seed",
8920
+ "description": "Optional seed used for decoding when reproducible sampling is desired.",
8921
+ "group": "sampling",
8922
+ "type": "integer"
8923
+ },
8924
+ {
8925
+ "path": "generationConfig.thinkingConfig.thinkingLevel",
8926
+ "label": "Thinking level",
8927
+ "description": "Controls Gemini 3.1 Flash-Lite reasoning effort.",
8928
+ "group": "reasoning",
8929
+ "type": "enum",
8930
+ "default": "minimal",
8931
+ "values": [
8932
+ "minimal",
8933
+ "low",
8934
+ "medium",
8935
+ "high"
8936
+ ]
8937
+ },
8938
+ {
8939
+ "path": "generationConfig.thinkingConfig.includeThoughts",
8940
+ "label": "Include thoughts",
8941
+ "description": "Controls whether Gemini returns available thought summaries in the response parts.",
8942
+ "group": "reasoning",
8943
+ "type": "boolean",
8944
+ "default": false
8945
+ },
8946
+ {
8947
+ "path": "generationConfig.responseMimeType",
8948
+ "label": "Response MIME type",
8949
+ "description": "MIME type for generated text candidates.",
8950
+ "group": "output_format",
8951
+ "type": "enum",
8952
+ "default": "text/plain",
8953
+ "values": [
8954
+ "text/plain",
8955
+ "application/json"
8956
+ ]
8957
+ }
8958
+ ]
8959
+ },
8960
+ {
8961
+ "provider": "google",
8962
+ "authType": "api_key",
8963
+ "model": "gemini-3.1-flash-image",
8964
+ "params": [
8965
+ {
8966
+ "path": "generationConfig.maxOutputTokens",
8967
+ "label": "Max output tokens",
8968
+ "description": "Maximum number of tokens to include in a response candidate.",
8969
+ "group": "generation_length",
8970
+ "type": "integer",
8971
+ "range": {
8972
+ "min": 1,
8973
+ "max": 65536
8974
+ }
8975
+ },
8976
+ {
8977
+ "path": "generationConfig.temperature",
8978
+ "label": "Temperature",
8979
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
8980
+ "group": "sampling",
8981
+ "type": "number",
8982
+ "default": 1,
8983
+ "range": {
8984
+ "min": 0,
8985
+ "max": 2,
8986
+ "step": 0.1
8987
+ }
8988
+ },
8989
+ {
8990
+ "path": "generationConfig.topP",
8991
+ "label": "Top P",
8992
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
8993
+ "group": "sampling",
8994
+ "type": "number",
8995
+ "default": 0.95,
8996
+ "range": {
8997
+ "min": 0,
8998
+ "max": 1,
8999
+ "step": 0.01
9000
+ }
9001
+ },
9002
+ {
9003
+ "path": "generationConfig.topK",
9004
+ "label": "Top K",
9005
+ "description": "Limits token sampling to the top K most likely next tokens.",
9006
+ "group": "sampling",
9007
+ "type": "integer",
9008
+ "default": 64,
9009
+ "range": {
9010
+ "min": 0
9011
+ }
9012
+ },
9013
+ {
9014
+ "path": "generationConfig.seed",
9015
+ "label": "Seed",
9016
+ "description": "Optional seed used for decoding when reproducible sampling is desired.",
9017
+ "group": "sampling",
9018
+ "type": "integer"
9019
+ },
9020
+ {
9021
+ "path": "generationConfig.thinkingConfig.thinkingLevel",
9022
+ "label": "Thinking level",
9023
+ "description": "Controls Gemini 3.1 Flash-Lite reasoning effort.",
9024
+ "group": "reasoning",
9025
+ "type": "enum",
9026
+ "default": "minimal",
9027
+ "values": [
9028
+ "minimal",
9029
+ "high"
9030
+ ]
9031
+ },
9032
+ {
9033
+ "path": "generationConfig.thinkingConfig.includeThoughts",
9034
+ "label": "Include thoughts",
9035
+ "description": "Controls whether Gemini returns available thought summaries in the response parts.",
9036
+ "group": "reasoning",
9037
+ "type": "boolean",
9038
+ "default": false
9039
+ },
9040
+ {
9041
+ "path": "generationConfig.responseMimeType",
9042
+ "label": "Response MIME type",
9043
+ "description": "MIME type for generated text candidates.",
9044
+ "group": "output_format",
9045
+ "type": "enum",
9046
+ "default": "text/plain",
9047
+ "values": [
9048
+ "text/plain",
9049
+ "application/json"
9050
+ ]
9051
+ }
9052
+ ]
9053
+ },
8864
9054
  {
8865
9055
  "provider": "google",
8866
9056
  "authType": "api_key",
@@ -98,6 +98,8 @@ ModelId = Literal[
98
98
  "google/gemini-2.5-pro",
99
99
  "google/gemini-2.5-pro-subscription",
100
100
  "google/gemini-3-flash-preview-subscription",
101
+ "google/gemini-3-pro-image",
102
+ "google/gemini-3.1-flash-image",
101
103
  "google/gemini-3.1-flash-lite",
102
104
  "google/gemini-3.1-flash-lite-preview-subscription",
103
105
  "google/gemini-3.1-flash-lite-subscription",
@@ -380,6 +382,8 @@ MODEL_IDS: tuple[ModelId, ...] = (
380
382
  "google/gemini-2.5-pro",
381
383
  "google/gemini-2.5-pro-subscription",
382
384
  "google/gemini-3-flash-preview-subscription",
385
+ "google/gemini-3-pro-image",
386
+ "google/gemini-3.1-flash-image",
383
387
  "google/gemini-3.1-flash-lite",
384
388
  "google/gemini-3.1-flash-lite-preview-subscription",
385
389
  "google/gemini-3.1-flash-lite-subscription",
@@ -119,6 +119,8 @@ PARAM_TYPES: dict[ModelId, Any] = {
119
119
  "google/gemini-2.5-pro": google.Gemini_2_5_ProParams,
120
120
  "google/gemini-2.5-pro-subscription": google.Gemini_2_5_Pro_SubscriptionParams,
121
121
  "google/gemini-3-flash-preview-subscription": google.Gemini_3_Flash_Preview_SubscriptionParams,
122
+ "google/gemini-3-pro-image": google.Gemini_3_Pro_ImageParams,
123
+ "google/gemini-3.1-flash-image": google.Gemini_3_1_Flash_ImageParams,
122
124
  "google/gemini-3.1-flash-lite": google.Gemini_3_1_Flash_LiteParams,
123
125
  "google/gemini-3.1-flash-lite-preview-subscription": google.Gemini_3_1_Flash_Lite_Preview_SubscriptionParams,
124
126
  "google/gemini-3.1-flash-lite-subscription": google.Gemini_3_1_Flash_Lite_SubscriptionParams,
@@ -122,6 +122,38 @@ Gemini_3_Flash_Preview_SubscriptionParams = TypedDict(
122
122
  )
123
123
  setattr(Gemini_3_Flash_Preview_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
124
124
 
125
+ Gemini_3_Pro_ImageParams = TypedDict(
126
+ "Gemini_3_Pro_ImageParams",
127
+ {
128
+ "generationConfig.maxOutputTokens": Annotated[int, Field(ge=1, le=65536)],
129
+ "generationConfig.temperature": Annotated[float, Field(ge=0, le=2)],
130
+ "generationConfig.topP": Annotated[float, Field(ge=0, le=1)],
131
+ "generationConfig.topK": Annotated[int, Field(ge=0)],
132
+ "generationConfig.seed": int,
133
+ "generationConfig.thinkingConfig.thinkingLevel": Literal["minimal", "low", "medium", "high"],
134
+ "generationConfig.thinkingConfig.includeThoughts": bool,
135
+ "generationConfig.responseMimeType": Literal["text/plain", "application/json"],
136
+ },
137
+ total=False,
138
+ )
139
+ setattr(Gemini_3_Pro_ImageParams, "__pydantic_config__", _PARAMS_CONFIG)
140
+
141
+ Gemini_3_1_Flash_ImageParams = TypedDict(
142
+ "Gemini_3_1_Flash_ImageParams",
143
+ {
144
+ "generationConfig.maxOutputTokens": Annotated[int, Field(ge=1, le=65536)],
145
+ "generationConfig.temperature": Annotated[float, Field(ge=0, le=2)],
146
+ "generationConfig.topP": Annotated[float, Field(ge=0, le=1)],
147
+ "generationConfig.topK": Annotated[int, Field(ge=0)],
148
+ "generationConfig.seed": int,
149
+ "generationConfig.thinkingConfig.thinkingLevel": Literal["minimal", "high"],
150
+ "generationConfig.thinkingConfig.includeThoughts": bool,
151
+ "generationConfig.responseMimeType": Literal["text/plain", "application/json"],
152
+ },
153
+ total=False,
154
+ )
155
+ setattr(Gemini_3_1_Flash_ImageParams, "__pydantic_config__", _PARAMS_CONFIG)
156
+
125
157
  Gemini_3_1_Flash_LiteParams = TypedDict(
126
158
  "Gemini_3_1_Flash_LiteParams",
127
159
  {
@@ -416,6 +448,8 @@ __all__ = [
416
448
  "Gemini_2_5_ProParams",
417
449
  "Gemini_2_5_Pro_SubscriptionParams",
418
450
  "Gemini_3_Flash_Preview_SubscriptionParams",
451
+ "Gemini_3_Pro_ImageParams",
452
+ "Gemini_3_1_Flash_ImageParams",
419
453
  "Gemini_3_1_Flash_LiteParams",
420
454
  "Gemini_3_1_Flash_Lite_Preview_SubscriptionParams",
421
455
  "Gemini_3_1_Flash_Lite_SubscriptionParams",
File without changes
File without changes
File without changes