modelparams 0.0.16__tar.gz → 0.0.17__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.16 → modelparams-0.0.17}/PKG-INFO +1 -1
  2. {modelparams-0.0.16 → modelparams-0.0.17}/pyproject.toml +1 -1
  3. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/_generated/catalog.json +64 -0
  4. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/_generated/model_ids.py +2 -0
  5. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/_generated/registry.py +1 -0
  6. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/anthropic.py +13 -0
  7. {modelparams-0.0.16 → modelparams-0.0.17}/.gitignore +0 -0
  8. {modelparams-0.0.16 → modelparams-0.0.17}/LICENSE +0 -0
  9. {modelparams-0.0.16 → modelparams-0.0.17}/README.md +0 -0
  10. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/alibaba.py +0 -0
  17. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/cerebras.py +0 -0
  18. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/cohere.py +0 -0
  19. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/deepseek.py +0 -0
  20. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/google.py +0 -0
  21. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.16 → modelparams-0.0.17}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.16
3
+ Version: 0.0.17
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.16"
7
+ version = "0.0.17"
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"
@@ -5463,6 +5463,70 @@
5463
5463
  }
5464
5464
  ]
5465
5465
  },
5466
+ {
5467
+ "provider": "anthropic",
5468
+ "authType": "subscription",
5469
+ "model": "claude-sonnet-5",
5470
+ "params": [
5471
+ {
5472
+ "path": "max_tokens",
5473
+ "label": "Max tokens",
5474
+ "description": "Maximum number of output tokens the model may generate.",
5475
+ "group": "generation_length",
5476
+ "type": "integer",
5477
+ "default": 4096,
5478
+ "range": {
5479
+ "min": 1
5480
+ }
5481
+ },
5482
+ {
5483
+ "path": "thinking.type",
5484
+ "label": "Thinking mode",
5485
+ "description": "Controls the Anthropic thinking mode values supported by this model.",
5486
+ "group": "reasoning",
5487
+ "type": "enum",
5488
+ "default": "disabled",
5489
+ "values": [
5490
+ "disabled",
5491
+ "adaptive"
5492
+ ]
5493
+ },
5494
+ {
5495
+ "path": "thinking.display",
5496
+ "label": "Thinking display",
5497
+ "description": "Controls whether Anthropic returns summarized or omitted thinking content.",
5498
+ "group": "reasoning",
5499
+ "applicability": {
5500
+ "only": {
5501
+ "thinking.type": [
5502
+ "adaptive"
5503
+ ]
5504
+ }
5505
+ },
5506
+ "type": "enum",
5507
+ "default": "summarized",
5508
+ "values": [
5509
+ "summarized",
5510
+ "omitted"
5511
+ ]
5512
+ },
5513
+ {
5514
+ "path": "output_config.effort",
5515
+ "label": "Effort",
5516
+ "description": "Controls Anthropic response thoroughness and token spend.",
5517
+ "group": "reasoning",
5518
+ "type": "enum",
5519
+ "default": "high",
5520
+ "values": [
5521
+ "low",
5522
+ "medium",
5523
+ "high",
5524
+ "xhigh",
5525
+ "max"
5526
+ ]
5527
+ }
5528
+ ]
5529
+ },
5466
5530
  {
5467
5531
  "provider": "cerebras",
5468
5532
  "authType": "api_key",
@@ -60,6 +60,7 @@ ModelId = Literal[
60
60
  "anthropic/claude-sonnet-4-6-subscription",
61
61
  "anthropic/claude-sonnet-4-subscription",
62
62
  "anthropic/claude-sonnet-5",
63
+ "anthropic/claude-sonnet-5-subscription",
63
64
  "cerebras/zai-glm-4.7",
64
65
  "cohere/command-a-03-2025",
65
66
  "cohere/command-a-plus-05-2026",
@@ -321,6 +322,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
321
322
  "anthropic/claude-sonnet-4-6-subscription",
322
323
  "anthropic/claude-sonnet-4-subscription",
323
324
  "anthropic/claude-sonnet-5",
325
+ "anthropic/claude-sonnet-5-subscription",
324
326
  "cerebras/zai-glm-4.7",
325
327
  "cohere/command-a-03-2025",
326
328
  "cohere/command-a-plus-05-2026",
@@ -81,6 +81,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
81
81
  "anthropic/claude-sonnet-4-6-subscription": anthropic.Claude_Sonnet_4_6_SubscriptionParams,
82
82
  "anthropic/claude-sonnet-4-subscription": anthropic.Claude_Sonnet_4_SubscriptionParams,
83
83
  "anthropic/claude-sonnet-5": anthropic.Claude_Sonnet_5Params,
84
+ "anthropic/claude-sonnet-5-subscription": anthropic.Claude_Sonnet_5_SubscriptionParams,
84
85
  "cerebras/zai-glm-4.7": cerebras.Zai_Glm_4_7Params,
85
86
  "cohere/command-a-03-2025": cohere.Command_A_03_2025Params,
86
87
  "cohere/command-a-plus-05-2026": cohere.Command_A_Plus_05_2026Params,
@@ -575,6 +575,18 @@ Claude_Sonnet_5Params = TypedDict(
575
575
  )
576
576
  setattr(Claude_Sonnet_5Params, "__pydantic_config__", _PARAMS_CONFIG)
577
577
 
578
+ Claude_Sonnet_5_SubscriptionParams = TypedDict(
579
+ "Claude_Sonnet_5_SubscriptionParams",
580
+ {
581
+ "max_tokens": Annotated[int, Field(ge=1)],
582
+ "thinking.type": Literal["disabled", "adaptive"],
583
+ "thinking.display": Literal["summarized", "omitted"],
584
+ "output_config.effort": Literal["low", "medium", "high", "xhigh", "max"],
585
+ },
586
+ total=False,
587
+ )
588
+ setattr(Claude_Sonnet_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG)
589
+
578
590
  __all__ = [
579
591
  "Claude_3_5_Haiku_20241022Params",
580
592
  "Claude_3_5_Haiku_LatestParams",
@@ -617,4 +629,5 @@ __all__ = [
617
629
  "Claude_Sonnet_4_6_SubscriptionParams",
618
630
  "Claude_Sonnet_4_SubscriptionParams",
619
631
  "Claude_Sonnet_5Params",
632
+ "Claude_Sonnet_5_SubscriptionParams",
620
633
  ]
File without changes
File without changes
File without changes