unique_toolkit 0.5.5__tar.gz → 0.5.6__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 (25) hide show
  1. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/CHANGELOG.md +4 -1
  2. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/PKG-INFO +6 -3
  3. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/pyproject.toml +2 -2
  4. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/content/service.py +1 -3
  5. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/language_model/service.py +2 -2
  6. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/LICENSE +0 -0
  7. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/README.md +0 -0
  8. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/__init__.py +0 -0
  9. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/init_logging.py +0 -0
  10. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/init_sdk.py +0 -0
  11. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/performance/async_executor.py +0 -0
  12. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  13. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/schemas.py +0 -0
  14. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/app/verification.py +0 -0
  15. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/chat/schemas.py +0 -0
  16. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/chat/service.py +0 -0
  17. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/chat/state.py +0 -0
  18. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/chat/utils.py +0 -0
  19. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/content/schemas.py +0 -0
  20. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/content/utils.py +0 -0
  21. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/embedding/schemas.py +0 -0
  22. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/embedding/service.py +0 -0
  23. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/language_model/infos.py +0 -0
  24. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/language_model/schemas.py +0 -0
  25. {unique_toolkit-0.5.5 → unique_toolkit-0.5.6}/unique_toolkit/language_model/utils.py +0 -0
@@ -5,9 +5,12 @@ 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.6] - 2024-07-30
9
+ - Bug fix: `ContentService.search_content_chunks` and it's `async` equivalent now accept `None` as a valid parameter value for `scope_ids`.
10
+
8
11
  ## [0.5.5] - 2024-07-30
9
12
  - Added parameters to `ContentService.search_content_chunks` and `ContentService.async_search_content_chunks`
10
- - `reranker_config` to optinally reranker the search results
13
+ - `reranker_config` to optinally rerank the search results
11
14
  - `search_language` to specify a language for full-text-search
12
15
 
13
16
  ## [0.5.4] - 2024-07-26
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.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 reranker the search results
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.5"
3
+ version = "0.5.6"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -16,7 +16,7 @@ python = "^3.11"
16
16
  typing-extensions = "^4.9.0"
17
17
  pydantic = "^2.8.2"
18
18
  pyhumps = "^3.8.0"
19
- unique-sdk = "^0.9"
19
+ unique-sdk = "^0.9.2"
20
20
  numpy = "^1.26.4"
21
21
  python-dotenv = "^1.0.1"
22
22
  requests = "^2.32.3"
@@ -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(
File without changes
File without changes