unique_toolkit 0.7.6__py3-none-any.whl → 0.7.8__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/app/schemas.py +5 -1
- unique_toolkit/language_model/infos.py +20 -0
- {unique_toolkit-0.7.6.dist-info → unique_toolkit-0.7.8.dist-info}/METADATA +7 -1
- {unique_toolkit-0.7.6.dist-info → unique_toolkit-0.7.8.dist-info}/RECORD +6 -6
- {unique_toolkit-0.7.6.dist-info → unique_toolkit-0.7.8.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.7.6.dist-info → unique_toolkit-0.7.8.dist-info}/WHEEL +0 -0
unique_toolkit/app/schemas.py
CHANGED
@@ -2,7 +2,7 @@ from enum import StrEnum
|
|
2
2
|
from typing import Any, Optional
|
3
3
|
|
4
4
|
from humps import camelize
|
5
|
-
from pydantic import BaseModel, ConfigDict
|
5
|
+
from pydantic import BaseModel, ConfigDict, Field
|
6
6
|
from typing_extensions import deprecated
|
7
7
|
|
8
8
|
# set config to convert camelCase to snake_case
|
@@ -98,6 +98,10 @@ class ChatEventPayload(BaseModel):
|
|
98
98
|
text: Optional[str] = None
|
99
99
|
additional_parameters: Optional[ChatEventAdditionalParameters] = None
|
100
100
|
user_metadata: Optional[dict[str, Any]] = None
|
101
|
+
tool_choices: Optional[list[str]] = Field(
|
102
|
+
default=[],
|
103
|
+
description="A list containing the tool names the user has chosen to be activated.",
|
104
|
+
)
|
101
105
|
tool_parameters: Optional[dict[str, Any]] = None
|
102
106
|
metadata_filter: Optional[dict[str, Any]] = None
|
103
107
|
|
@@ -16,6 +16,7 @@ class LanguageModelName(StrEnum):
|
|
16
16
|
AZURE_GPT_4_TURBO_2024_0409 = "AZURE_GPT_4_TURBO_2024_0409"
|
17
17
|
AZURE_GPT_4o_2024_0513 = "AZURE_GPT_4o_2024_0513"
|
18
18
|
AZURE_GPT_4o_2024_0806 = "AZURE_GPT_4o_2024_0806"
|
19
|
+
AZURE_GPT_4o_2024_1120 = "AZURE_GPT_4o_2024_1120"
|
19
20
|
AZURE_GPT_4o_MINI_2024_0718 = "AZURE_GPT_4o_MINI_2024_0718"
|
20
21
|
AZURE_o1_MINI_2024_0912 = "AZURE_o1_MINI_2024_0912"
|
21
22
|
AZURE_o1_2024_1217 = "AZURE_o1_2024_1217"
|
@@ -198,6 +199,25 @@ class LanguageModelInfo(BaseModel):
|
|
198
199
|
info_cutoff_at=date(2023, 10, 1),
|
199
200
|
published_at=date(2024, 8, 6),
|
200
201
|
)
|
202
|
+
case LanguageModelName.AZURE_GPT_4o_2024_1120:
|
203
|
+
return cls(
|
204
|
+
name=model_name,
|
205
|
+
encoder_name=EncoderName.O200K_BASE,
|
206
|
+
capabilities=[
|
207
|
+
ModelCapabilities.STRUCTURED_OUTPUT,
|
208
|
+
ModelCapabilities.FUNCTION_CALLING,
|
209
|
+
ModelCapabilities.PARALLEL_FUNCTION_CALLING,
|
210
|
+
ModelCapabilities.STREAMING,
|
211
|
+
ModelCapabilities.VISION,
|
212
|
+
],
|
213
|
+
provider=LanguageModelProvider.AZURE,
|
214
|
+
version="2024-11-20",
|
215
|
+
token_limits=LanguageModelTokenLimits(
|
216
|
+
token_limit_input=128_000, token_limit_output=16_384
|
217
|
+
),
|
218
|
+
info_cutoff_at=date(2023, 10, 1),
|
219
|
+
published_at=date(2024, 11, 20),
|
220
|
+
)
|
201
221
|
case LanguageModelName.AZURE_GPT_4o_MINI_2024_0718:
|
202
222
|
return cls(
|
203
223
|
name=model_name,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.8
|
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.8] - 2025-04-08
|
115
|
+
- add `AZURE_GPT_4o_2024_1120` as part of the models
|
116
|
+
|
117
|
+
## [0.7.7] - 2025-04-11
|
118
|
+
- Add tool choice parameter to chat event payload
|
119
|
+
|
114
120
|
## [0.7.6] - 2025-04-08
|
115
121
|
- De provisioning o1-preview
|
116
122
|
|
@@ -9,7 +9,7 @@ unique_toolkit/app/init_logging.py,sha256=Sh26SRxOj8i8dzobKhYha2lLrkrMTHfB1V4jR3
|
|
9
9
|
unique_toolkit/app/init_sdk.py,sha256=Nv4Now4pMfM0AgRhbtatLpm_39rKxn0WmRLwmPhRl-8,1285
|
10
10
|
unique_toolkit/app/performance/async_tasks.py,sha256=H0l3OAcosLwNHZ8d2pd-Di4wHIXfclEvagi5kfqLFPA,1941
|
11
11
|
unique_toolkit/app/performance/async_wrapper.py,sha256=yVVcRDkcdyfjsxro-N29SBvi-7773wnfDplef6-y8xw,1077
|
12
|
-
unique_toolkit/app/schemas.py,sha256=
|
12
|
+
unique_toolkit/app/schemas.py,sha256=WsdiK39za5h7ir__DBv_FYV-i2_FMucNCWdFgXWN7NE,3373
|
13
13
|
unique_toolkit/app/verification.py,sha256=GxFFwcJMy25fCA_Xe89wKW7bgqOu8PAs5y8QpHF0GSc,3861
|
14
14
|
unique_toolkit/chat/__init__.py,sha256=LRs2G-JTVuci4lbtHTkVUiNcZcSR6uqqfnAyo7af6nY,619
|
15
15
|
unique_toolkit/chat/constants.py,sha256=05kq6zjqUVB2d6_P7s-90nbljpB3ryxwCI-CAz0r2O4,83
|
@@ -48,7 +48,7 @@ unique_toolkit/language_model/__init__.py,sha256=jWko_vQj48wjnpTtlkg8iNdef0SMI3F
|
|
48
48
|
unique_toolkit/language_model/builder.py,sha256=aIAXWWUoB5G-HONJiAt3MdRGd4jdP8nA-HYX2D2WlSI,3048
|
49
49
|
unique_toolkit/language_model/constants.py,sha256=B-topqW0r83dkC_25DeQfnPk3n53qzIHUCBS7YJ0-1U,119
|
50
50
|
unique_toolkit/language_model/functions.py,sha256=I5jHhHsKoq7GwEQyTrM8LXB2n_6dvMAk7UklenjuHSY,7945
|
51
|
-
unique_toolkit/language_model/infos.py,sha256=
|
51
|
+
unique_toolkit/language_model/infos.py,sha256=m-UKpjGPS3Utt7mAH1jTL0HBLKeOQV_8MaSOlGpn14k,18309
|
52
52
|
unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
|
53
53
|
unique_toolkit/language_model/schemas.py,sha256=rrwzUgKANFOrdehCULW8Hh03uRW3tsE5dXpWqxmClfg,8618
|
54
54
|
unique_toolkit/language_model/service.py,sha256=GupYD4uDZjy1TfVQW3jichmgQwiSgQCj350FtL4O0W4,5569
|
@@ -58,7 +58,7 @@ unique_toolkit/short_term_memory/constants.py,sha256=698CL6-wjup2MvU19RxSmQk3gX7
|
|
58
58
|
unique_toolkit/short_term_memory/functions.py,sha256=3WiK-xatY5nh4Dr5zlDUye1k3E6kr41RiscwtTplw5k,4484
|
59
59
|
unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJs8FEZXcgQTNenw,1406
|
60
60
|
unique_toolkit/short_term_memory/service.py,sha256=0wrwuo6K17Edcuiwp5LMCvxFuBSDP82HF0_5qwi0nYc,5307
|
61
|
-
unique_toolkit-0.7.
|
62
|
-
unique_toolkit-0.7.
|
63
|
-
unique_toolkit-0.7.
|
64
|
-
unique_toolkit-0.7.
|
61
|
+
unique_toolkit-0.7.8.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
62
|
+
unique_toolkit-0.7.8.dist-info/METADATA,sha256=QQb3okeUtjwY593emusDLwEexrSRTfDdAQew37l67qI,21334
|
63
|
+
unique_toolkit-0.7.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
64
|
+
unique_toolkit-0.7.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|