unique_toolkit 0.5.5__py3-none-any.whl → 0.5.6__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/service.py +1 -3
- unique_toolkit/language_model/service.py +2 -2
- {unique_toolkit-0.5.5.dist-info → unique_toolkit-0.5.6.dist-info}/METADATA +6 -3
- {unique_toolkit-0.5.5.dist-info → unique_toolkit-0.5.6.dist-info}/RECORD +6 -6
- {unique_toolkit-0.5.5.dist-info → unique_toolkit-0.5.6.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.5.5.dist-info → unique_toolkit-0.5.6.dist-info}/WHEEL +0 -0
@@ -100,8 +100,6 @@ class ContentService:
|
|
100
100
|
search_language: str = DEFAULT_SEARCH_LANGUAGE,
|
101
101
|
scope_ids: Optional[list[str]] = None,
|
102
102
|
) -> list[ContentChunk]:
|
103
|
-
scope_ids = scope_ids or self.state.scope_ids or []
|
104
|
-
|
105
103
|
if not scope_ids:
|
106
104
|
self.logger.warning("No scope IDs provided for search.")
|
107
105
|
|
@@ -114,7 +112,7 @@ class ContentService:
|
|
114
112
|
searchType=search_type.name,
|
115
113
|
scopeIds=scope_ids,
|
116
114
|
limit=limit,
|
117
|
-
reranker=reranker_config,
|
115
|
+
reranker=reranker_config.model_dump() if reranker_config else None,
|
118
116
|
language=search_language,
|
119
117
|
chatOnly=self.state.chat_only,
|
120
118
|
)
|
@@ -92,7 +92,7 @@ class LanguageModelService:
|
|
92
92
|
tools: Optional[list[LanguageModelTool]] = None,
|
93
93
|
) -> LanguageModelResponse:
|
94
94
|
options = self._add_tools_to_options({}, tools)
|
95
|
-
messages = messages.model_dump(exclude_none=True)
|
95
|
+
messages = messages.model_dump(exclude_none=True, exclude={"tool_calls"})
|
96
96
|
try:
|
97
97
|
response = unique_sdk.ChatCompletion.create(
|
98
98
|
company_id=self.state.company_id,
|
@@ -217,7 +217,7 @@ class LanguageModelService:
|
|
217
217
|
for chunk in content_chunks
|
218
218
|
]
|
219
219
|
|
220
|
-
messages = messages.model_dump(exclude_none=True)
|
220
|
+
messages = messages.model_dump(exclude_none=True, exclude={"tool_calls"})
|
221
221
|
|
222
222
|
try:
|
223
223
|
response = unique_sdk.Integrated.chat_stream_completion(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.6
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Author: Martin Fadler
|
@@ -18,7 +18,7 @@ Requires-Dist: regex (>=2024.5.15,<2025.0.0)
|
|
18
18
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
19
19
|
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
20
20
|
Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
|
21
|
-
Requires-Dist: unique-sdk (>=0.9,<0.10)
|
21
|
+
Requires-Dist: unique-sdk (>=0.9.2,<0.10.0)
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
# Unique Toolkit
|
@@ -102,9 +102,12 @@ All notable changes to this project will be documented in this file.
|
|
102
102
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
103
103
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
104
104
|
|
105
|
+
## [0.5.6] - 2024-07-30
|
106
|
+
- Bug fix: `ContentService.search_content_chunks` and it's `async` equivalent now accept `None` as a valid parameter value for `scope_ids`.
|
107
|
+
|
105
108
|
## [0.5.5] - 2024-07-30
|
106
109
|
- Added parameters to `ContentService.search_content_chunks` and `ContentService.async_search_content_chunks`
|
107
|
-
- `reranker_config` to optinally
|
110
|
+
- `reranker_config` to optinally rerank the search results
|
108
111
|
- `search_language` to specify a language for full-text-search
|
109
112
|
|
110
113
|
## [0.5.4] - 2024-07-26
|
@@ -10,15 +10,15 @@ unique_toolkit/chat/service.py,sha256=zxMoOMKlLJNwtRAO8GCpX9tGwVUsbgHWEPWztGe6ht
|
|
10
10
|
unique_toolkit/chat/state.py,sha256=IljPSqbzQq9TMD9cnbkII8k4eTtkyYOGzRe-DuR-Nic,1831
|
11
11
|
unique_toolkit/chat/utils.py,sha256=ihm-wQykBWhB4liR3LnwPVPt_qGW6ETq21Mw4HY0THE,854
|
12
12
|
unique_toolkit/content/schemas.py,sha256=b6QiqZUBdYA14_CfJYeXEGSrPmT98n_Q8knugnP20yA,2093
|
13
|
-
unique_toolkit/content/service.py,sha256=
|
13
|
+
unique_toolkit/content/service.py,sha256=PQUog5lYYSnKOpSWMVfB1ITTTar09mY4Z1J1EBRjd3k,12472
|
14
14
|
unique_toolkit/content/utils.py,sha256=x3ABo8ZCRm3YJAQwDtrr82z77DmW4Mei7KCIITjP0fk,6897
|
15
15
|
unique_toolkit/embedding/schemas.py,sha256=1GvKCaSk4jixzVQ2PKq8yDqwGEVY_hWclYtoAr6CC2g,96
|
16
16
|
unique_toolkit/embedding/service.py,sha256=IjBag3koSSeoQTo9836t0K5tkTbu0otvytVWnYQJHw4,2403
|
17
17
|
unique_toolkit/language_model/infos.py,sha256=NhAkeW7PyusSIHCMvwRikLlzGG4tOXSLf_Fnq7V9rNE,8881
|
18
18
|
unique_toolkit/language_model/schemas.py,sha256=kTGSGT3ygrH3guQELOWpxN4MTgEPuudi-CTvRu-zCcI,4377
|
19
|
-
unique_toolkit/language_model/service.py,sha256=
|
19
|
+
unique_toolkit/language_model/service.py,sha256=OX3VCvco7K2me-2q0LgzHAdpCfPd4mHlwb1F3aZgYSk,9797
|
20
20
|
unique_toolkit/language_model/utils.py,sha256=WBPj1XKkDgxy_-T8HCZvsfkkSzj_1w4UZzNmyvdbBLY,1081
|
21
|
-
unique_toolkit-0.5.
|
22
|
-
unique_toolkit-0.5.
|
23
|
-
unique_toolkit-0.5.
|
24
|
-
unique_toolkit-0.5.
|
21
|
+
unique_toolkit-0.5.6.dist-info/LICENSE,sha256=bIeCWCYuoUU_MzNdg48-ubJSVm7qxakaRbzTiJ5uxrs,1065
|
22
|
+
unique_toolkit-0.5.6.dist-info/METADATA,sha256=jwWhgPrtTNiTsC_Xk8KaTGYiVc1tZ9uvkkC7ePfL_XI,8715
|
23
|
+
unique_toolkit-0.5.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
24
|
+
unique_toolkit-0.5.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|