unique_toolkit 0.5.3__tar.gz → 0.5.4__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.3 → unique_toolkit-0.5.4}/CHANGELOG.md +3 -0
  2. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/PKG-INFO +4 -1
  3. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/pyproject.toml +1 -1
  4. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/chat/schemas.py +1 -1
  5. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/content/service.py +0 -2
  6. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/LICENSE +0 -0
  7. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/README.md +0 -0
  8. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/__init__.py +0 -0
  9. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/init_logging.py +0 -0
  10. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/init_sdk.py +0 -0
  11. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/performance/async_executor.py +0 -0
  12. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  13. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/schemas.py +0 -0
  14. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/app/verification.py +0 -0
  15. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/chat/service.py +0 -0
  16. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/chat/state.py +0 -0
  17. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/chat/utils.py +0 -0
  18. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/content/schemas.py +0 -0
  19. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/content/utils.py +0 -0
  20. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/embedding/schemas.py +0 -0
  21. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/embedding/service.py +0 -0
  22. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/language_model/infos.py +0 -0
  23. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/language_model/schemas.py +0 -0
  24. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/language_model/service.py +0 -0
  25. {unique_toolkit-0.5.3 → unique_toolkit-0.5.4}/unique_toolkit/language_model/utils.py +0 -0
@@ -5,6 +5,9 @@ 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.4] - 2024-07-26
9
+ - correct ChatMessage schema
10
+
8
11
  ## [0.5.3] - 2024-07-25
9
12
  - downgrade numpy version to ^1.26.4 to be compatible with langchain libraries (require numpy<2.0)
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -102,6 +102,9 @@ 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
+
105
108
  ## [0.5.3] - 2024-07-25
106
109
  - downgrade numpy version to ^1.26.4 to be compatible with langchain libraries (require numpy<2.0)
107
110
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.3"
3
+ version = "0.5.4"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -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}"
File without changes
File without changes