unique_toolkit 0.5.45__tar.gz → 0.5.46__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 (50) hide show
  1. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/CHANGELOG.md +3 -0
  2. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/PKG-INFO +5 -2
  3. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/README.md +1 -1
  4. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/pyproject.toml +1 -1
  5. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/infos.py +20 -4
  6. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/LICENSE +0 -0
  7. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/__init__.py +0 -0
  8. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/_common/_base_service.py +0 -0
  9. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/_common/_time_utils.py +0 -0
  10. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/_common/exception.py +0 -0
  11. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/_common/validators.py +0 -0
  12. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/__init__.py +0 -0
  13. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/init_logging.py +0 -0
  14. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/init_sdk.py +0 -0
  15. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/performance/async_tasks.py +0 -0
  16. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  17. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/schemas.py +0 -0
  18. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/app/verification.py +0 -0
  19. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/chat/__init__.py +0 -0
  20. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/chat/schemas.py +0 -0
  21. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/chat/service.py +0 -0
  22. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/chat/state.py +0 -0
  23. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/chat/utils.py +0 -0
  24. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/content/__init__.py +0 -0
  25. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/content/schemas.py +0 -0
  26. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/content/service.py +0 -0
  27. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/content/utils.py +0 -0
  28. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/embedding/__init__.py +0 -0
  29. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/embedding/schemas.py +0 -0
  30. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/embedding/service.py +0 -0
  31. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/embedding/utils.py +0 -0
  32. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/config.py +0 -0
  33. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/context_relevancy/constants.py +0 -0
  34. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/context_relevancy/prompts.py +0 -0
  35. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/context_relevancy/service.py +0 -0
  36. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/context_relevancy/utils.py +0 -0
  37. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/exception.py +0 -0
  38. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/hallucination/constants.py +0 -0
  39. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/hallucination/prompts.py +0 -0
  40. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/hallucination/service.py +0 -0
  41. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/hallucination/utils.py +0 -0
  42. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/output_parser.py +0 -0
  43. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/evaluators/schemas.py +0 -0
  44. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/__init__.py +0 -0
  45. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/prompt.py +0 -0
  46. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/schemas.py +0 -0
  47. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/service.py +0 -0
  48. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/language_model/utils.py +0 -0
  49. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/short_term_memory/schemas.py +0 -0
  50. {unique_toolkit-0.5.45 → unique_toolkit-0.5.46}/unique_toolkit/short_term_memory/service.py +0 -0
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.46] - 2025-01-07
9
+ - Added `AZURE_GPT_35_TURBO_0125` as new model into toolkit.
10
+
8
11
  ## [0.5.45] - 2025-01-03
9
12
  - Added `ShortTermMemoryService` class to handle short term memory.
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.45
3
+ Version: 0.5.46
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -79,7 +79,7 @@ The `unique_toolkit.embedding` module encompasses all embedding related function
79
79
  The `unique_toolkit.language_model` module encompasses all language model related functionality and information on the different language models deployed through the
80
80
  Unique platform.
81
81
 
82
- - `infos.py` comprises the information on all language models deployed through the Unique platform. We recommend to use the LanguageModel class, initialized with the LanguageModelName, e.g., LanguageModel(LanguageModelName.AZURE_GPT_35_TURBO_16K) to get the information on the specific language model like the name, version, token limits or retirement date.
82
+ - `infos.py` comprises the information on all language models deployed through the Unique platform. We recommend to use the LanguageModel class, initialized with the LanguageModelName, e.g., LanguageModel(LanguageModelName.AZURE_GPT_35_TURBO_0125) to get the information on the specific language model like the name, version, token limits or retirement date.
83
83
  - `service.py` comprises the LanguageModelService and provides an interface to interact with the language models, e.g., complete or stream_complete.
84
84
  - `schemas.py` comprises all relevant schemas, e.g., LanguageModelResponse, used in the LanguageModelService.
85
85
  - `utils.py` comprises utility functions to parse the output of the language model, e.g., convert_string_to_json finds and parses the last json object in a string.
@@ -100,6 +100,9 @@ All notable changes to this project will be documented in this file.
100
100
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
101
101
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
102
102
 
103
+ ## [0.5.46] - 2025-01-07
104
+ - Added `AZURE_GPT_35_TURBO_0125` as new model into toolkit.
105
+
103
106
  ## [0.5.45] - 2025-01-03
104
107
  - Added `ShortTermMemoryService` class to handle short term memory.
105
108
 
@@ -57,7 +57,7 @@ The `unique_toolkit.embedding` module encompasses all embedding related function
57
57
  The `unique_toolkit.language_model` module encompasses all language model related functionality and information on the different language models deployed through the
58
58
  Unique platform.
59
59
 
60
- - `infos.py` comprises the information on all language models deployed through the Unique platform. We recommend to use the LanguageModel class, initialized with the LanguageModelName, e.g., LanguageModel(LanguageModelName.AZURE_GPT_35_TURBO_16K) to get the information on the specific language model like the name, version, token limits or retirement date.
60
+ - `infos.py` comprises the information on all language models deployed through the Unique platform. We recommend to use the LanguageModel class, initialized with the LanguageModelName, e.g., LanguageModel(LanguageModelName.AZURE_GPT_35_TURBO_0125) to get the information on the specific language model like the name, version, token limits or retirement date.
61
61
  - `service.py` comprises the LanguageModelService and provides an interface to interact with the language models, e.g., complete or stream_complete.
62
62
  - `schemas.py` comprises all relevant schemas, e.g., LanguageModelResponse, used in the LanguageModelService.
63
63
  - `utils.py` comprises utility functions to parse the output of the language model, e.g., convert_string_to_json finds and parses the last json object in a string.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.45"
3
+ version = "0.5.46"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -11,6 +11,7 @@ class LanguageModelName(StrEnum):
11
11
  AZURE_GPT_35_TURBO_0613 = "AZURE_GPT_35_TURBO_0613"
12
12
  AZURE_GPT_35_TURBO = "AZURE_GPT_35_TURBO"
13
13
  AZURE_GPT_35_TURBO_16K = "AZURE_GPT_35_TURBO_16K"
14
+ AZURE_GPT_35_TURBO_0125 = "AZURE_GPT_35_TURBO_0125"
14
15
  AZURE_GPT_4_0613 = "AZURE_GPT_4_0613"
15
16
  AZURE_GPT_4_TURBO_1106 = "AZURE_GPT_4_TURBO_1106"
16
17
  AZURE_GPT_4_VISION_PREVIEW = "AZURE_GPT_4_VISION_PREVIEW"
@@ -33,6 +34,7 @@ def get_encoder_name(model_name: LanguageModelName) -> Optional[EncoderName]:
33
34
  LMN.AZURE_GPT_35_TURBO
34
35
  | LMN.AZURE_GPT_35_TURBO_16K
35
36
  | LMN.AZURE_GPT_35_TURBO_0613
37
+ | LMN.AZURE_GPT_35_TURBO_0125
36
38
  ):
37
39
  return EncoderName.CL100K_BASE
38
40
  case (
@@ -278,7 +280,7 @@ AzureGpt35Turbo0613 = create_language_model(
278
280
  token_limit=8192,
279
281
  info_cutoff_at=date(2021, 9, 1),
280
282
  published_at=date(2023, 6, 13),
281
- retirement_at=date(2024, 10, 1),
283
+ retirement_at=date(2025, 2, 13),
282
284
  )
283
285
 
284
286
  AzureGpt35Turbo = create_language_model(
@@ -289,6 +291,7 @@ AzureGpt35Turbo = create_language_model(
289
291
  token_limit=4096,
290
292
  info_cutoff_at=date(2021, 9, 1),
291
293
  published_at=date(2023, 3, 1),
294
+ retirement_at=date(2025, 2, 13),
292
295
  )
293
296
 
294
297
 
@@ -300,7 +303,20 @@ AzureGpt35Turbo16k = create_language_model(
300
303
  token_limit=16382,
301
304
  info_cutoff_at=date(2021, 9, 1),
302
305
  published_at=date(2023, 6, 13),
303
- retirement_at=date(2024, 10, 1),
306
+ retirement_at=date(2025, 2, 13),
307
+ )
308
+
309
+
310
+ AzureGpt35Turbo0125 = create_language_model(
311
+ name=LanguageModelName.AZURE_GPT_35_TURBO_0125,
312
+ provider=LanguageModelProvider.AZURE,
313
+ version="0125",
314
+ encoder_name=get_encoder_name(LanguageModelName.AZURE_GPT_35_TURBO_0125),
315
+ token_limit_input=16385,
316
+ token_limit_output=4096,
317
+ info_cutoff_at=date(2021, 9, 1),
318
+ published_at=date(2023, 1, 25),
319
+ retirement_at=date(5, 3, 31),
304
320
  )
305
321
 
306
322
 
@@ -313,7 +329,7 @@ AzureGpt40613 = create_language_model(
313
329
  info_cutoff_at=date(2021, 9, 1),
314
330
  published_at=date(2023, 6, 13),
315
331
  deprecated_at=date(2024, 10, 1),
316
- retirement_at=date(2025, 6, 1),
332
+ retirement_at=date(2025, 6, 6),
317
333
  )
318
334
 
319
335
 
@@ -349,7 +365,7 @@ AzureGpt432k0613 = create_language_model(
349
365
  info_cutoff_at=date(2021, 9, 1),
350
366
  published_at=date(2023, 6, 13),
351
367
  deprecated_at=date(2024, 10, 1),
352
- retirement_at=date(2025, 6, 1),
368
+ retirement_at=date(2025, 6, 6),
353
369
  )
354
370
 
355
371
  AzureGpt4Turbo20240409 = create_language_model(
File without changes