unique_sdk 0.9.35__tar.gz → 0.9.36__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.

Potentially problematic release.


This version of unique_sdk might be problematic. Click here for more details.

Files changed (37) hide show
  1. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/PKG-INFO +5 -1
  3. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/README.md +1 -0
  4. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/pyproject.toml +1 -1
  5. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_chat_completion.py +10 -2
  6. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/LICENSE +0 -0
  7. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_content.py +0 -0
  25. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_embedding.py +0 -0
  26. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_event.py +0 -0
  27. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_folder.py +0 -0
  28. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_integrated.py +0 -0
  29. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_message.py +0 -0
  30. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_message_assessment.py +0 -0
  31. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_search.py +0 -0
  32. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_search_string.py +0 -0
  33. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  34. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/utils/chat_history.py +0 -0
  35. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/utils/file_io.py +0 -0
  36. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/utils/sources.py +0 -0
  37. {unique_sdk-0.9.35 → unique_sdk-0.9.36}/unique_sdk/utils/token.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.9.36] - 2025-06-23
9
+ - Allow passing a user id when creating chat completions. This is optional and it does not impact the current behaviour.
10
+
8
11
  ## [0.9.35] - 2025-06-18
9
12
  - Allow scope access updates (add/remove) on folder based on scope id or path.
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.35
3
+ Version: 0.9.36
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -776,6 +776,7 @@ Send a prompt to an AI model supported by Unique FinanceGPT and receive a result
776
776
  ```python
777
777
  chat_completion = unique_sdk.ChatCompletion.create(
778
778
  company_id=company_id,
779
+ user_id=user_id
779
780
  model="AZURE_GPT_35_TURBO",
780
781
  messages=[
781
782
  {"role": "system", "content": "You are a helpful assistant."},
@@ -1229,6 +1230,9 @@ All notable changes to this project will be documented in this file.
1229
1230
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1230
1231
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1231
1232
 
1233
+ ## [0.9.36] - 2025-06-23
1234
+ - Allow passing a user id when creating chat completions. This is optional and it does not impact the current behaviour.
1235
+
1232
1236
  ## [0.9.35] - 2025-06-18
1233
1237
  - Allow scope access updates (add/remove) on folder based on scope id or path.
1234
1238
 
@@ -760,6 +760,7 @@ Send a prompt to an AI model supported by Unique FinanceGPT and receive a result
760
760
  ```python
761
761
  chat_completion = unique_sdk.ChatCompletion.create(
762
762
  company_id=company_id,
763
+ user_id=user_id
763
764
  model="AZURE_GPT_35_TURBO",
764
765
  messages=[
765
766
  {"role": "system", "content": "You are a helpful assistant."},
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.9.35"
3
+ version = "0.9.36"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -52,7 +52,10 @@ class ChatCompletion(APIResource["ChatCompletion"]):
52
52
 
53
53
  @classmethod
54
54
  def create(
55
- cls, company_id: str, **params: Unpack["ChatCompletion.CreateParams"]
55
+ cls,
56
+ company_id: str,
57
+ user_id: str | None = None,
58
+ **params: Unpack["ChatCompletion.CreateParams"],
56
59
  ) -> "ChatCompletion":
57
60
  return cast(
58
61
  "ChatCompletion",
@@ -60,13 +63,17 @@ class ChatCompletion(APIResource["ChatCompletion"]):
60
63
  "post",
61
64
  cls.class_url(),
62
65
  company_id=company_id,
66
+ user_id=user_id,
63
67
  params=params,
64
68
  ),
65
69
  )
66
70
 
67
71
  @classmethod
68
72
  async def create_async(
69
- cls, company_id: str, **params: Unpack["ChatCompletion.CreateParams"]
73
+ cls,
74
+ company_id: str,
75
+ user_id: str | None = None,
76
+ **params: Unpack["ChatCompletion.CreateParams"],
70
77
  ) -> "ChatCompletion":
71
78
  return cast(
72
79
  "ChatCompletion",
@@ -74,6 +81,7 @@ class ChatCompletion(APIResource["ChatCompletion"]):
74
81
  "post",
75
82
  cls.class_url(),
76
83
  company_id=company_id,
84
+ user_id=user_id,
77
85
  params=params,
78
86
  ),
79
87
  )
File without changes