unique_toolkit 0.5.12__tar.gz → 0.5.14__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. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/CHANGELOG.md +7 -0
  2. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/PKG-INFO +8 -1
  3. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/pyproject.toml +1 -1
  4. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/language_model/infos.py +11 -0
  5. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/language_model/schemas.py +5 -1
  6. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/LICENSE +0 -0
  7. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/README.md +0 -0
  8. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/__init__.py +0 -0
  9. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/_common/_base_service.py +0 -0
  10. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/_common/_time_utils.py +0 -0
  11. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/__init__.py +0 -0
  12. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/init_logging.py +0 -0
  13. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/init_sdk.py +0 -0
  14. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/performance/async_tasks.py +0 -0
  15. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  16. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/schemas.py +0 -0
  17. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/app/verification.py +0 -0
  18. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/chat/__init__.py +0 -0
  19. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/chat/schemas.py +0 -0
  20. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/chat/service.py +0 -0
  21. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/chat/state.py +0 -0
  22. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/chat/utils.py +0 -0
  23. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/content/__init__.py +0 -0
  24. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/content/schemas.py +0 -0
  25. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/content/service.py +0 -0
  26. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/content/utils.py +0 -0
  27. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/embedding/__init__.py +0 -0
  28. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/embedding/schemas.py +0 -0
  29. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/embedding/service.py +0 -0
  30. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/embedding/utils.py +0 -0
  31. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/language_model/__init__.py +0 -0
  32. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/language_model/service.py +0 -0
  33. {unique_toolkit-0.5.12 → unique_toolkit-0.5.14}/unique_toolkit/language_model/utils.py +0 -0
@@ -5,6 +5,13 @@ 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.14] - 2024-08-26
9
+ - Add AZURE_GPT_4o_MINI_2024_0718 to language model infos
10
+
11
+ ## [0.5.13] - 2024-08-19
12
+ - Added `items` to `LanguageModelToolParameterProperty` schema to add support for parameters with list types.
13
+ - Added `returns` to `LanguageModelTool` schema to describe the return types of tool calls.
14
+
8
15
  ## [0.5.12] - 2024-08-7
9
16
  - added `completedAt` datetime to `unique_sdk.Message.modify` and `unique_sdk.Message.modify_async`
10
17
  - added `original_text` and `language` to `EventUserMessage`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.12
3
+ Version: 0.5.14
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -101,6 +101,13 @@ All notable changes to this project will be documented in this file.
101
101
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
102
102
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
103
103
 
104
+ ## [0.5.14] - 2024-08-26
105
+ - Add AZURE_GPT_4o_MINI_2024_0718 to language model infos
106
+
107
+ ## [0.5.13] - 2024-08-19
108
+ - Added `items` to `LanguageModelToolParameterProperty` schema to add support for parameters with list types.
109
+ - Added `returns` to `LanguageModelTool` schema to describe the return types of tool calls.
110
+
104
111
  ## [0.5.12] - 2024-08-7
105
112
  - added `completedAt` datetime to `unique_sdk.Message.modify` and `unique_sdk.Message.modify_async`
106
113
  - added `original_text` and `language` to `EventUserMessage`
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.12"
3
+ version = "0.5.14"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -17,6 +17,7 @@ class LanguageModelName(StrEnum):
17
17
  AZURE_GPT_4_32K_0613 = "AZURE_GPT_4_32K_0613"
18
18
  AZURE_GPT_4_TURBO_2024_0409 = "AZURE_GPT_4_TURBO_2024_0409"
19
19
  AZURE_GPT_4o_2024_0513 = "AZURE_GPT_4o_2024_0513"
20
+ AZURE_GPT_4o_MINI_2024_0718 = "AZURE_GPT_4o_MINI_2024_0718"
20
21
 
21
22
 
22
23
  class LanguageModelProvider(StrEnum):
@@ -303,3 +304,13 @@ AzureGpt4o20240513 = create_language_model(
303
304
  info_cutoff_at=date(2023, 10, 1),
304
305
  published_at=date(2024, 5, 13),
305
306
  )
307
+
308
+ AzureGpt4oMini20240718 = create_language_model(
309
+ name=LanguageModelName.AZURE_GPT_4o_MINI_2024_0718,
310
+ provider=LanguageModelProvider.AZURE,
311
+ version="2024-07-18",
312
+ token_limit_input=128000,
313
+ token_limit_output=16384,
314
+ info_cutoff_at=date(2023, 10, 1),
315
+ published_at=date(2024, 7, 18),
316
+ )
@@ -1,6 +1,6 @@
1
1
  import json
2
2
  from enum import StrEnum
3
- from typing import Any, Optional
3
+ from typing import Any, Optional, Self
4
4
 
5
5
  from humps import camelize
6
6
  from pydantic import BaseModel, ConfigDict, RootModel, field_validator, model_validator
@@ -154,6 +154,7 @@ class LanguageModelToolParameterProperty(BaseModel):
154
154
  type: str
155
155
  description: str
156
156
  enum: Optional[list[Any]] = None
157
+ items: Optional[Self] = None
157
158
 
158
159
 
159
160
  class LanguageModelToolParameters(BaseModel):
@@ -166,3 +167,6 @@ class LanguageModelTool(BaseModel):
166
167
  name: str
167
168
  description: str
168
169
  parameters: LanguageModelToolParameters
170
+ returns: LanguageModelToolParameterProperty | LanguageModelToolParameters | None = (
171
+ None
172
+ )
File without changes