unique_toolkit 0.5.2__py3-none-any.whl → 0.5.4__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.
@@ -21,7 +21,7 @@ class ChatMessage(BaseModel):
21
21
  object: str | None = None
22
22
  content: str = Field(alias="text")
23
23
  role: ChatMessageRole
24
- debug_info: dict = {}
24
+ debug_info: dict | None = {}
25
25
 
26
26
  # TODO make sdk return role consistently in lowercase
27
27
  # Currently needed as sdk returns role in uppercase
@@ -323,8 +323,6 @@ class ContentService:
323
323
  Exception: If the download fails.
324
324
  """
325
325
 
326
- print("download chat id", chat_id)
327
-
328
326
  url = f"{unique_sdk.api_base}/content/{content_id}/file"
329
327
  if chat_id:
330
328
  url = f"{url}?chatId={chat_id}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: numpy (>=2.0.1,<3.0.0)
13
+ Requires-Dist: numpy (>=1.26.4,<2.0.0)
14
14
  Requires-Dist: pydantic (>=2.8.2,<3.0.0)
15
15
  Requires-Dist: pyhumps (>=3.8.0,<4.0.0)
16
16
  Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
@@ -102,6 +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.4] - 2024-07-26
106
+ - correct ChatMessage schema
107
+
108
+ ## [0.5.3] - 2024-07-25
109
+ - downgrade numpy version to ^1.26.4 to be compatible with langchain libraries (require numpy<2.0)
110
+
105
111
  ## [0.5.2] - 2024-07-25
106
112
  - correct event schema
107
113
 
@@ -5,12 +5,12 @@ unique_toolkit/app/performance/async_executor.py,sha256=ImekDRWkFeXuIYFnCpSJAqE0
5
5
  unique_toolkit/app/performance/async_wrapper.py,sha256=Xli5zH9RFdbBJnlBQS_kP7TGqXhPNou5WKst4FLWzGo,770
6
6
  unique_toolkit/app/schemas.py,sha256=UAbIkrgdqwWEwKqnJwB4TNQWuJgEsFzDxqJbEC8xcOc,1098
7
7
  unique_toolkit/app/verification.py,sha256=UZqTHg3PX_QxMjeLH_BVBYoMVqMnMpeMoqvyTBKDqj8,1996
8
- unique_toolkit/chat/schemas.py,sha256=aEXf0tX1ljHjb73jy1pilUKivrvle54iDLiyQ093u7c,794
8
+ unique_toolkit/chat/schemas.py,sha256=TYqrDy96ynP7XpnT_abOJlq6LkqBTdKwEft4YHeEgR8,801
9
9
  unique_toolkit/chat/service.py,sha256=zxMoOMKlLJNwtRAO8GCpX9tGwVUsbgHWEPWztGe6htw,12300
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=u3b0R6bIEjbI4zGMoBRi-bdZy_SeRKtMRi8PKW6yMZ4,1969
13
- unique_toolkit/content/service.py,sha256=Y7MsKoQnuDAp3cAtNawzmH_rzfSKOaib8jjA3HsflTs,11372
13
+ unique_toolkit/content/service.py,sha256=CLvHWu3SULOFLKbCl2LKBHgL7m11UWiRPsTPvFkhJXY,11328
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
@@ -18,7 +18,7 @@ unique_toolkit/language_model/infos.py,sha256=NhAkeW7PyusSIHCMvwRikLlzGG4tOXSLf_
18
18
  unique_toolkit/language_model/schemas.py,sha256=kTGSGT3ygrH3guQELOWpxN4MTgEPuudi-CTvRu-zCcI,4377
19
19
  unique_toolkit/language_model/service.py,sha256=VHixKmi6-BP-StDQdomS-J-EWKIhHvDjNCi5zrP3mpM,9749
20
20
  unique_toolkit/language_model/utils.py,sha256=WBPj1XKkDgxy_-T8HCZvsfkkSzj_1w4UZzNmyvdbBLY,1081
21
- unique_toolkit-0.5.2.dist-info/LICENSE,sha256=bIeCWCYuoUU_MzNdg48-ubJSVm7qxakaRbzTiJ5uxrs,1065
22
- unique_toolkit-0.5.2.dist-info/METADATA,sha256=LrqTXW8D5uyo8pgqRfiI7V2CAKP25h2F9QeTQ3UBsZU,8110
23
- unique_toolkit-0.5.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
- unique_toolkit-0.5.2.dist-info/RECORD,,
21
+ unique_toolkit-0.5.4.dist-info/LICENSE,sha256=bIeCWCYuoUU_MzNdg48-ubJSVm7qxakaRbzTiJ5uxrs,1065
22
+ unique_toolkit-0.5.4.dist-info/METADATA,sha256=qB0TDQGmJpsKzyWCtjI6qxFERg1YKmc_B_ErQvLMsCY,8289
23
+ unique_toolkit-0.5.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
+ unique_toolkit-0.5.4.dist-info/RECORD,,