unique_toolkit 0.8.8__py3-none-any.whl → 0.8.9__py3-none-any.whl

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.
@@ -507,7 +507,9 @@ class LanguageModelInfo(BaseModel):
507
507
  version="claude-3-7-sonnet",
508
508
  encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
509
509
  token_limits=LanguageModelTokenLimits(
510
- token_limit_input=200_000, token_limit_output=128_000
510
+ # Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
511
+ token_limit_input=180_000,
512
+ token_limit_output=128_000,
511
513
  ),
512
514
  info_cutoff_at=date(2024, 10, 31),
513
515
  published_at=date(2025, 2, 24),
@@ -525,7 +527,9 @@ class LanguageModelInfo(BaseModel):
525
527
  version="claude-3-7-sonnet-thinking",
526
528
  encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
527
529
  token_limits=LanguageModelTokenLimits(
528
- token_limit_input=200_000, token_limit_output=128_000
530
+ # Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
531
+ token_limit_input=180_000,
532
+ token_limit_output=128_000,
529
533
  ),
530
534
  info_cutoff_at=date(2024, 10, 31),
531
535
  published_at=date(2025, 2, 24),
@@ -543,7 +547,9 @@ class LanguageModelInfo(BaseModel):
543
547
  version="claude-sonnet-4",
544
548
  encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
545
549
  token_limits=LanguageModelTokenLimits(
546
- token_limit_input=200_000, token_limit_output=64_000
550
+ # Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
551
+ token_limit_input=180_000,
552
+ token_limit_output=64_000,
547
553
  ),
548
554
  info_cutoff_at=date(2025, 3, 1),
549
555
  published_at=date(2025, 5, 1),
@@ -561,7 +567,9 @@ class LanguageModelInfo(BaseModel):
561
567
  version="claude-opus-4",
562
568
  encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
563
569
  token_limits=LanguageModelTokenLimits(
564
- token_limit_input=200_000, token_limit_output=32_000
570
+ # Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
571
+ token_limit_input=180_000,
572
+ token_limit_output=32_000,
565
573
  ),
566
574
  info_cutoff_at=date(2025, 3, 1),
567
575
  published_at=date(2025, 5, 1),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.8.8
3
+ Version: 0.8.9
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -114,6 +114,9 @@ All notable changes to this project will be documented in this file.
114
114
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
115
115
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
116
116
 
117
+ ## [0.8.9] - 2025-08-15
118
+ - Reduce input token limits for `ANTHROPIC_CLAUDE_3_7_SONNET_THINKING`, `ANTHROPIC_CLAUDE_3_7_SONNET`, `ANTHROPIC_CLAUDE_OPUS_4` and `ANTHROPIC_CLAUDE_SONNET_4` to 180_000 from 200_000
119
+
117
120
  ## [0.8.8] - 2025-08-11
118
121
  - Make chat service openai stream response openai compatible
119
122
  - Make `ChatMessage` openai compatible
@@ -55,7 +55,7 @@ unique_toolkit/language_model/__init__.py,sha256=lRQyLlbwHbNFf4-0foBU13UGb09lwEe
55
55
  unique_toolkit/language_model/builder.py,sha256=4OKfwJfj3TrgO1ezc_ewIue6W7BCQ2ZYQXUckWVPPTA,3369
56
56
  unique_toolkit/language_model/constants.py,sha256=B-topqW0r83dkC_25DeQfnPk3n53qzIHUCBS7YJ0-1U,119
57
57
  unique_toolkit/language_model/functions.py,sha256=qi4KGa4hLUXy0KwkkGmtGBM1IuYfJqmTheSQ95R7pNw,15611
58
- unique_toolkit/language_model/infos.py,sha256=mnUnbjDQNOIuPS2VE1SsgyKOxdRulo-9Z5k7_S1Q8Cw,37631
58
+ unique_toolkit/language_model/infos.py,sha256=0Dq1ywdKLvtdLhkPycStt-DU_B5eito7EcJbzLLD1kU,38167
59
59
  unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
60
60
  unique_toolkit/language_model/reference.py,sha256=nkX2VFz-IrUz8yqyc3G5jUMNwrNpxITBrMEKkbqqYoI,8583
61
61
  unique_toolkit/language_model/schemas.py,sha256=p95cAwrYmEBupI8f7JZY17aJTKEHvtqF88hMIzS5r_k,16259
@@ -82,7 +82,7 @@ unique_toolkit/tools/utils/execution/execution.py,sha256=vjG2Y6awsGNtlvyQAGCTthQ
82
82
  unique_toolkit/tools/utils/source_handling/schema.py,sha256=pvNhtL2daDLpCVIQpfdn6R35GvKmITVLXjZNLAwpgUE,871
83
83
  unique_toolkit/tools/utils/source_handling/source_formatting.py,sha256=C7uayNbdkNVJdEARA5CENnHtNY1SU6etlaqbgHNyxaQ,9152
84
84
  unique_toolkit/tools/utils/source_handling/tests/test_source_formatting.py,sha256=zu3AJnYH9CMqZPrxKEH3IgI-fM3nlvIBuspJG6W6B18,6978
85
- unique_toolkit-0.8.8.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
86
- unique_toolkit-0.8.8.dist-info/METADATA,sha256=AUly1ya9VxSfPCq8ivY1kAq4MrClSRQ-fm8_9BZr0oI,26649
87
- unique_toolkit-0.8.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
88
- unique_toolkit-0.8.8.dist-info/RECORD,,
85
+ unique_toolkit-0.8.9.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
86
+ unique_toolkit-0.8.9.dist-info/METADATA,sha256=GXgO-pTEsJdHBTjG3a_liQz8HddNZxTl19a-Zes5GE0,26859
87
+ unique_toolkit-0.8.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
88
+ unique_toolkit-0.8.9.dist-info/RECORD,,