unique_toolkit 0.7.29__py3-none-any.whl → 0.7.30__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.
- unique_toolkit/language_model/infos.py +80 -0
- {unique_toolkit-0.7.29.dist-info → unique_toolkit-0.7.30.dist-info}/METADATA +3 -5
- {unique_toolkit-0.7.29.dist-info → unique_toolkit-0.7.30.dist-info}/RECORD +5 -5
- {unique_toolkit-0.7.29.dist-info → unique_toolkit-0.7.30.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.7.29.dist-info → unique_toolkit-0.7.30.dist-info}/WHEEL +0 -0
@@ -34,9 +34,13 @@ class LanguageModelName(StrEnum):
|
|
34
34
|
ANTHROPIC_CLAUDE_SONNET_4 = "litellm:anthropic-claude-sonnet-4"
|
35
35
|
ANTHROPIC_CLAUDE_OPUS_4 = "litellm:anthropic-claude-opus-4"
|
36
36
|
GEMINI_2_0_FLASH = "litellm:gemini-2-0-flash"
|
37
|
+
GEMINI_2_5_FLASH = "litellm:gemini-2-5-flash"
|
38
|
+
GEMINI_2_5_FLASH_LITE_PREVIEW_0617 = "litellm:gemini-2-5-flash-lite-preview-06-17"
|
37
39
|
GEMINI_2_5_FLASH_PREVIEW_0417 = "litellm:gemini-2-5-flash-preview-04-17"
|
38
40
|
GEMINI_2_5_FLASH_PREVIEW_0520 = "litellm:gemini-2-5-flash-preview-05-20"
|
41
|
+
GEMINI_2_5_PRO = "litellm:gemini-2-5-pro"
|
39
42
|
GEMINI_2_5_PRO_EXP_0325 = "litellm:gemini-2-5-pro-exp-03-25"
|
43
|
+
GEMINI_2_5_PRO_PREVIEW_0605 = "litellm:gemini-2-5-pro-preview-06-05"
|
40
44
|
|
41
45
|
|
42
46
|
class EncoderName(StrEnum):
|
@@ -506,6 +510,44 @@ class LanguageModelInfo(BaseModel):
|
|
506
510
|
info_cutoff_at=date(2024, 8, 1),
|
507
511
|
published_at=date(2025, 2, 1),
|
508
512
|
)
|
513
|
+
case LanguageModelName.GEMINI_2_5_FLASH:
|
514
|
+
return cls(
|
515
|
+
name=model_name,
|
516
|
+
capabilities=[
|
517
|
+
ModelCapabilities.FUNCTION_CALLING,
|
518
|
+
ModelCapabilities.STREAMING,
|
519
|
+
ModelCapabilities.VISION,
|
520
|
+
ModelCapabilities.STRUCTURED_OUTPUT,
|
521
|
+
ModelCapabilities.REASONING,
|
522
|
+
],
|
523
|
+
provider=LanguageModelProvider.LITELLM,
|
524
|
+
version="gemini-2-5-flash",
|
525
|
+
encoder_name=EncoderName.O200K_BASE, # TODO:Replace with LLM tokenizer
|
526
|
+
token_limits=LanguageModelTokenLimits(
|
527
|
+
token_limit_input=1_048_576, token_limit_output=65_536
|
528
|
+
),
|
529
|
+
info_cutoff_at=date(2025, 1, day=1),
|
530
|
+
published_at=date(2025, 4, 1),
|
531
|
+
)
|
532
|
+
case LanguageModelName.GEMINI_2_5_FLASH_LITE_PREVIEW_0617:
|
533
|
+
return cls(
|
534
|
+
name=model_name,
|
535
|
+
capabilities=[
|
536
|
+
ModelCapabilities.FUNCTION_CALLING,
|
537
|
+
ModelCapabilities.STREAMING,
|
538
|
+
ModelCapabilities.VISION,
|
539
|
+
ModelCapabilities.STRUCTURED_OUTPUT,
|
540
|
+
ModelCapabilities.REASONING,
|
541
|
+
],
|
542
|
+
provider=LanguageModelProvider.LITELLM,
|
543
|
+
version="gemini-2-5-flash-lite-preview-06-17",
|
544
|
+
encoder_name=EncoderName.O200K_BASE, # TODO:Replace with LLM tokenizer
|
545
|
+
token_limits=LanguageModelTokenLimits(
|
546
|
+
token_limit_input=1_000_000, token_limit_output=64_000
|
547
|
+
),
|
548
|
+
info_cutoff_at=date(2025, 1, day=1),
|
549
|
+
published_at=date(2025, 6, 17),
|
550
|
+
)
|
509
551
|
case LanguageModelName.GEMINI_2_5_FLASH_PREVIEW_0417:
|
510
552
|
return cls(
|
511
553
|
name=model_name,
|
@@ -544,6 +586,25 @@ class LanguageModelInfo(BaseModel):
|
|
544
586
|
info_cutoff_at=date(2025, 1, day=1),
|
545
587
|
published_at=date(2025, 4, 1),
|
546
588
|
)
|
589
|
+
case LanguageModelName.GEMINI_2_5_PRO:
|
590
|
+
return cls(
|
591
|
+
name=model_name,
|
592
|
+
capabilities=[
|
593
|
+
ModelCapabilities.FUNCTION_CALLING,
|
594
|
+
ModelCapabilities.STREAMING,
|
595
|
+
ModelCapabilities.VISION,
|
596
|
+
ModelCapabilities.STRUCTURED_OUTPUT,
|
597
|
+
ModelCapabilities.REASONING,
|
598
|
+
],
|
599
|
+
provider=LanguageModelProvider.LITELLM,
|
600
|
+
version="gemini-2-5-pro",
|
601
|
+
encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
|
602
|
+
token_limits=LanguageModelTokenLimits(
|
603
|
+
token_limit_input=1_048_576, token_limit_output=65_536
|
604
|
+
),
|
605
|
+
info_cutoff_at=date(2025, 1, day=1),
|
606
|
+
published_at=date(2025, 6, 17),
|
607
|
+
)
|
547
608
|
case LanguageModelName.GEMINI_2_5_PRO_EXP_0325:
|
548
609
|
return cls(
|
549
610
|
name=model_name,
|
@@ -563,6 +624,25 @@ class LanguageModelInfo(BaseModel):
|
|
563
624
|
info_cutoff_at=date(2025, 1, day=1),
|
564
625
|
published_at=date(2025, 3, 1),
|
565
626
|
)
|
627
|
+
case LanguageModelName.GEMINI_2_5_PRO_PREVIEW_0605:
|
628
|
+
return cls(
|
629
|
+
name=model_name,
|
630
|
+
capabilities=[
|
631
|
+
ModelCapabilities.FUNCTION_CALLING,
|
632
|
+
ModelCapabilities.STREAMING,
|
633
|
+
ModelCapabilities.VISION,
|
634
|
+
ModelCapabilities.STRUCTURED_OUTPUT,
|
635
|
+
ModelCapabilities.REASONING,
|
636
|
+
],
|
637
|
+
provider=LanguageModelProvider.LITELLM,
|
638
|
+
version="gemini-2-5-pro-preview-06-05",
|
639
|
+
encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
|
640
|
+
token_limits=LanguageModelTokenLimits(
|
641
|
+
token_limit_input=1_048_576, token_limit_output=65_536
|
642
|
+
),
|
643
|
+
info_cutoff_at=date(2025, 1, day=1),
|
644
|
+
published_at=date(2025, 6, 5),
|
645
|
+
)
|
566
646
|
case _:
|
567
647
|
if isinstance(model_name, LanguageModelName):
|
568
648
|
raise ValueError(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.30
|
4
4
|
Summary:
|
5
5
|
License: Proprietary
|
6
6
|
Author: Martin Fadler
|
@@ -111,14 +111,13 @@ All notable changes to this project will be documented in this file.
|
|
111
111
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
112
112
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
113
113
|
|
114
|
-
|
114
|
+
## [0.7.30] - 2025-06-20
|
115
|
+
- Adding litellm models `litellm:gemini-2-5-flash`, `gemini-2-5-flash-lite-preview-06-17`, `litellm:gemini-2-5-pro`, `litellm:gemini-2-5-pro-preview-06-05`
|
115
116
|
|
116
117
|
## [0.7.29] - 2025-06-19
|
117
118
|
- Fix typehintin in services
|
118
119
|
- Error on invalid initialization
|
119
120
|
|
120
|
-
#
|
121
|
-
|
122
121
|
## [0.7.28] - 2025-06-17
|
123
122
|
- Revert default factory change on `ChatEventPayload` for attribute `metadata_filter` due to error in `backend-ingestion` on empty dict
|
124
123
|
|
@@ -126,7 +125,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
126
125
|
- Introduce a protocol for `complete_with_references` to enable testable services
|
127
126
|
- Rename/Create functions `stream_complete` in chat service and llm service accordingly
|
128
127
|
|
129
|
-
|
130
128
|
## [0.7.26] - 2025-06-05
|
131
129
|
- Add `scope_rules` to `ChatEventPayload`
|
132
130
|
- Added `UniqueQL` compiler and pydantic classes for `UniqueQL`. Note this is functionally equivalent but not identical to `UQLOperator` or `UQLCombinator` in `unique_sdk`.
|
@@ -48,7 +48,7 @@ unique_toolkit/language_model/__init__.py,sha256=lRQyLlbwHbNFf4-0foBU13UGb09lwEe
|
|
48
48
|
unique_toolkit/language_model/builder.py,sha256=69WCcmkm2rMP2-YEH_EjHiEp6OzwjwCs8VbhjVJaCe0,3168
|
49
49
|
unique_toolkit/language_model/constants.py,sha256=B-topqW0r83dkC_25DeQfnPk3n53qzIHUCBS7YJ0-1U,119
|
50
50
|
unique_toolkit/language_model/functions.py,sha256=J54mzKs-uOBejpiMDa1YviKvJDcYl0gvEF1CfLb7_S4,12208
|
51
|
-
unique_toolkit/language_model/infos.py,sha256=
|
51
|
+
unique_toolkit/language_model/infos.py,sha256=w5__BVG-IiiEYKG1FwM838wzqNbYI3eCCEDocKezc0I,34801
|
52
52
|
unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
|
53
53
|
unique_toolkit/language_model/reference.py,sha256=TrRfnxd-cjpdijmZ1dKII87aEACIbW7iU_cE9gtGuH4,8314
|
54
54
|
unique_toolkit/language_model/schemas.py,sha256=DJD2aoMfs2Irnc4rzOrVuV4Fbt84LQAiDGG5rse1dgk,12770
|
@@ -62,7 +62,7 @@ unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJ
|
|
62
62
|
unique_toolkit/short_term_memory/service.py,sha256=cqpXA0nMbi4PhFweg-Cql3u0RvaTi5c8Xjv0uHMiSGc,8112
|
63
63
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
64
64
|
unique_toolkit/smart_rules/compile.py,sha256=cxWjb2dxEI2HGsakKdVCkSNi7VK9mr08w5sDcFCQyWI,9553
|
65
|
-
unique_toolkit-0.7.
|
66
|
-
unique_toolkit-0.7.
|
67
|
-
unique_toolkit-0.7.
|
68
|
-
unique_toolkit-0.7.
|
65
|
+
unique_toolkit-0.7.30.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
66
|
+
unique_toolkit-0.7.30.dist-info/METADATA,sha256=GC9KCCAiwU1l1IvyhGM-U9qqRsW_9I47tdNSVGhu5dE,24431
|
67
|
+
unique_toolkit-0.7.30.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
68
|
+
unique_toolkit-0.7.30.dist-info/RECORD,,
|
File without changes
|
File without changes
|