unique_sdk 0.9.35__py3-none-any.whl → 0.9.36__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.

Potentially problematic release.


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

@@ -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
  )
@@ -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
 
@@ -15,7 +15,7 @@ unique_sdk/_version.py,sha256=j4_tPC6t3enRds7LqiRuWSyfrYHfEo6CXIDARAWW98I,19
15
15
  unique_sdk/_webhook.py,sha256=GYxbUibQN_W4XlNTHaMIksT9FQJk4LJmlKcxOu3jqiU,2855
16
16
  unique_sdk/api_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  unique_sdk/api_resources/_acronyms.py,sha256=GIU1XH1flGWQYcpsFqTYwg4ioIGxVmb15tux84nmhEg,891
18
- unique_sdk/api_resources/_chat_completion.py,sha256=hAPPHxoljcoHeTboxoJkcXgpqA2hNBu6a6vamdxag58,2000
18
+ unique_sdk/api_resources/_chat_completion.py,sha256=ILCAffxkbkfh2iV9L4KKnfe80gZmT9pWfkNmf3mq68U,2172
19
19
  unique_sdk/api_resources/_content.py,sha256=BLv4qXdazSYy_L0Z9ihr0hquE3xFIY32CBpfbOkxSpE,9527
20
20
  unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
21
21
  unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
@@ -30,7 +30,7 @@ unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUo
30
30
  unique_sdk/utils/file_io.py,sha256=YY8B7VJcTLOPmCXByiOfNerXGlAtjCC5EVNmAbQJ3dQ,4306
31
31
  unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
32
32
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
33
- unique_sdk-0.9.35.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
34
- unique_sdk-0.9.35.dist-info/METADATA,sha256=Dt2oGjlLS-BCKfEthkcQvpmzzm4_4GvTi1YI2cpF_Xs,39169
35
- unique_sdk-0.9.35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- unique_sdk-0.9.35.dist-info/RECORD,,
33
+ unique_sdk-0.9.36.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
34
+ unique_sdk-0.9.36.dist-info/METADATA,sha256=u9n2SfCsTAaH6HyQWQivxQGdcpdKWz4cdwU9HJCDMYk,39336
35
+ unique_sdk-0.9.36.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ unique_sdk-0.9.36.dist-info/RECORD,,