unique_toolkit 0.7.21__py3-none-any.whl → 0.7.23__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.
@@ -222,10 +222,9 @@ def _prepare_completion_params_util(
222
222
  model_name.value if isinstance(model_name, LanguageModelName) else model_name
223
223
  )
224
224
 
225
- # Different methods need different message dump parameters
226
225
  messages_dict = messages.model_dump(
227
226
  exclude_none=True,
228
- by_alias=content_chunks is not None, # Use by_alias for streaming methods
227
+ by_alias=True,
229
228
  )
230
229
 
231
230
  search_context = (
@@ -54,6 +54,7 @@ def get_encoder_name(model_name: LanguageModelName) -> EncoderName:
54
54
  LMN.AZURE_GPT_4o_2024_0513
55
55
  | LMN.AZURE_GPT_4o_2024_0806
56
56
  | LMN.AZURE_GPT_4o_MINI_2024_0718
57
+ | LMN.AZURE_GPT_4o_2024_1120
57
58
  ):
58
59
  return EncoderName.O200K_BASE
59
60
  case _:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.7.21
3
+ Version: 0.7.23
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -111,6 +111,12 @@ 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
+ ## [0.7.23] - 2025-05-22
115
+ - add encoder for `AZURE_GPT_4o_2024_1120` to be part of the encoder function returns.
116
+
117
+ ## [0.7.22] - 2025-05-22
118
+ - `messages` are now always serialized by alias. This affects `LanguageModelService.complete` and `LanguageModelService.complete_async`.
119
+
114
120
  ## [0.7.21] - 2025-05-21
115
121
  - Extend the update the `ChatMessage` object to include the `Reference` object introduced in the public api
116
122
 
@@ -47,8 +47,8 @@ unique_toolkit/evaluators/schemas.py,sha256=Jaue6Uhx75X1CyHKWj8sT3RE1JZXTqoLtfLt
47
47
  unique_toolkit/language_model/__init__.py,sha256=lRQyLlbwHbNFf4-0foBU13UGb09lwEeodbVsfsSgaCk,1971
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
- unique_toolkit/language_model/functions.py,sha256=KbCClXmRnrs-Ug8Wi9ehCLTqT2aIr3PQFc1rBuV3Om0,8172
51
- unique_toolkit/language_model/infos.py,sha256=qPf4Xlanet8jf0apZ6-qxS_6zmDd6p9D40it2TqmF3w,25910
50
+ unique_toolkit/language_model/functions.py,sha256=koCAfhtkIGSiy8pSdDpIw9xRbwJ20EeLhDQMUXc8KZk,8049
51
+ unique_toolkit/language_model/infos.py,sha256=oMm8TkK6YIjR1Uy8_EQCO25WqKcEhMMpwFlnIsHv0E4,25951
52
52
  unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
53
53
  unique_toolkit/language_model/schemas.py,sha256=DJD2aoMfs2Irnc4rzOrVuV4Fbt84LQAiDGG5rse1dgk,12770
54
54
  unique_toolkit/language_model/service.py,sha256=9LS3ouRNtzqZaKrMFagLZS9gBvNC5e46Ut86YWHBBHY,8470
@@ -59,7 +59,7 @@ unique_toolkit/short_term_memory/constants.py,sha256=698CL6-wjup2MvU19RxSmQk3gX7
59
59
  unique_toolkit/short_term_memory/functions.py,sha256=3WiK-xatY5nh4Dr5zlDUye1k3E6kr41RiscwtTplw5k,4484
60
60
  unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJs8FEZXcgQTNenw,1406
61
61
  unique_toolkit/short_term_memory/service.py,sha256=vEKFxP1SScPrFniso492fVthWR1sosdFibhiNF3zRvI,8081
62
- unique_toolkit-0.7.21.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
63
- unique_toolkit-0.7.21.dist-info/METADATA,sha256=oQ7rP8KWv6CxQlfrhtOlr05dKwuM6raJVAtvAwmOHvg,23041
64
- unique_toolkit-0.7.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
- unique_toolkit-0.7.21.dist-info/RECORD,,
62
+ unique_toolkit-0.7.23.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
63
+ unique_toolkit-0.7.23.dist-info/METADATA,sha256=Gku_wy6SKZskvVjQ2u-nd5W0mkGpr0bDNnEFdvgzgE4,23317
64
+ unique_toolkit-0.7.23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
+ unique_toolkit-0.7.23.dist-info/RECORD,,