unique_toolkit 0.5.7__py3-none-any.whl → 0.5.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/content/schemas.py +2 -2
- unique_toolkit/content/service.py +6 -2
- {unique_toolkit-0.5.7.dist-info → unique_toolkit-0.5.8.dist-info}/METADATA +4 -1
- {unique_toolkit-0.5.7.dist-info → unique_toolkit-0.5.8.dist-info}/RECORD +6 -6
- {unique_toolkit-0.5.7.dist-info → unique_toolkit-0.5.8.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.5.7.dist-info → unique_toolkit-0.5.8.dist-info}/WHEEL +0 -0
@@ -3,7 +3,7 @@ from enum import StrEnum
|
|
3
3
|
from typing import Optional
|
4
4
|
|
5
5
|
from humps import camelize
|
6
|
-
from pydantic import BaseModel, ConfigDict
|
6
|
+
from pydantic import BaseModel, ConfigDict, Field
|
7
7
|
|
8
8
|
# set config to convert camelCase to snake_case
|
9
9
|
model_config = ConfigDict(
|
@@ -92,5 +92,5 @@ class ContentUploadInput(BaseModel):
|
|
92
92
|
|
93
93
|
class RerankerConfig(BaseModel):
|
94
94
|
model_config = model_config
|
95
|
-
deployment_name: str
|
95
|
+
deployment_name: str = Field(serialization_alias="deploymentName")
|
96
96
|
options: dict | None = None
|
@@ -69,7 +69,9 @@ class ContentService(BaseService):
|
|
69
69
|
searchType=search_type.name,
|
70
70
|
scopeIds=scope_ids,
|
71
71
|
limit=limit,
|
72
|
-
reranker=reranker_config.model_dump()
|
72
|
+
reranker=reranker_config.model_dump(by_alias=True)
|
73
|
+
if reranker_config
|
74
|
+
else None,
|
73
75
|
language=search_language,
|
74
76
|
chatOnly=chat_only,
|
75
77
|
)
|
@@ -121,7 +123,9 @@ class ContentService(BaseService):
|
|
121
123
|
searchType=search_type.name,
|
122
124
|
scopeIds=scope_ids,
|
123
125
|
limit=limit,
|
124
|
-
reranker=reranker_config.model_dump()
|
126
|
+
reranker=reranker_config.model_dump(by_alias=True)
|
127
|
+
if reranker_config
|
128
|
+
else None,
|
125
129
|
language=search_language,
|
126
130
|
chatOnly=chat_only,
|
127
131
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.8
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Author: Martin Fadler
|
@@ -101,6 +101,9 @@ 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.8] - 2024-08-1
|
105
|
+
- `RerankerConfig` serialization alias added
|
106
|
+
|
104
107
|
## [0.5.7] - 2024-07-31
|
105
108
|
- Replace mocked async service calls with async calls in `unique_sdk`
|
106
109
|
- Change async methods name from `async_*` to `*_async`
|
@@ -10,8 +10,8 @@ unique_toolkit/chat/schemas.py,sha256=TYqrDy96ynP7XpnT_abOJlq6LkqBTdKwEft4YHeEgR
|
|
10
10
|
unique_toolkit/chat/service.py,sha256=jTxFchdjcGp3IQZxWR4x3XTdATxodP0xD4LGJZYltVw,13338
|
11
11
|
unique_toolkit/chat/state.py,sha256=qrXkxmYlTM6PRpHX6j_vhJNWkJX4r-xgJ3NvqM80rAY,1441
|
12
12
|
unique_toolkit/chat/utils.py,sha256=ihm-wQykBWhB4liR3LnwPVPt_qGW6ETq21Mw4HY0THE,854
|
13
|
-
unique_toolkit/content/schemas.py,sha256=
|
14
|
-
unique_toolkit/content/service.py,sha256=
|
13
|
+
unique_toolkit/content/schemas.py,sha256=TdKcr_O0-2s3rshgj8VkTyBFuAs7RfKE1itSMY-fc94,2146
|
14
|
+
unique_toolkit/content/service.py,sha256=b55Jnqgy7DQtFerPm2zfQKexvz-AO7YiWJZTlXuX4f4,13417
|
15
15
|
unique_toolkit/content/utils.py,sha256=x3ABo8ZCRm3YJAQwDtrr82z77DmW4Mei7KCIITjP0fk,6897
|
16
16
|
unique_toolkit/embedding/schemas.py,sha256=1GvKCaSk4jixzVQ2PKq8yDqwGEVY_hWclYtoAr6CC2g,96
|
17
17
|
unique_toolkit/embedding/service.py,sha256=xcU84ANMIebBui_AWBhfN1rqz7evXYRgg_Z-132veNE,2703
|
@@ -19,7 +19,7 @@ unique_toolkit/language_model/infos.py,sha256=NhAkeW7PyusSIHCMvwRikLlzGG4tOXSLf_
|
|
19
19
|
unique_toolkit/language_model/schemas.py,sha256=kTGSGT3ygrH3guQELOWpxN4MTgEPuudi-CTvRu-zCcI,4377
|
20
20
|
unique_toolkit/language_model/service.py,sha256=0g0nAGj9Te16YHFhqO9pkszhEwtuZ6bSqor6hi49e6c,10549
|
21
21
|
unique_toolkit/language_model/utils.py,sha256=WBPj1XKkDgxy_-T8HCZvsfkkSzj_1w4UZzNmyvdbBLY,1081
|
22
|
-
unique_toolkit-0.5.
|
23
|
-
unique_toolkit-0.5.
|
24
|
-
unique_toolkit-0.5.
|
25
|
-
unique_toolkit-0.5.
|
22
|
+
unique_toolkit-0.5.8.dist-info/LICENSE,sha256=bIeCWCYuoUU_MzNdg48-ubJSVm7qxakaRbzTiJ5uxrs,1065
|
23
|
+
unique_toolkit-0.5.8.dist-info/METADATA,sha256=-QZ41K5H5zgULgADGAvfHgJtJvGm9NGG86gDs5S-1C4,9046
|
24
|
+
unique_toolkit-0.5.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
25
|
+
unique_toolkit-0.5.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|