unique_sdk 0.9.35__py3-none-any.whl → 0.9.37__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.
@@ -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
  )
@@ -173,6 +173,7 @@ class Content(APIResource["Content"]):
173
173
  ingestionConfiguration: "Content.MagicTableSheetIngestionConfiguration"
174
174
  metadata: Dict[str, Optional[str]]
175
175
  scopeId: str
176
+ sheetName: str
176
177
 
177
178
  class MagicTableSheetRowIdToContentId(TypedDict):
178
179
  rowId: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.35
3
+ Version: 0.9.37
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -463,6 +463,7 @@ Allows you to ingest a magic table sheet, each row is processed and converted in
463
463
  "libraryName": "foo",
464
464
  },
465
465
  "scopeId": scope_id,
466
+ "sheetName": "Sheet1",
466
467
  }
467
468
 
468
469
  unique_sdk.Content.ingest_magic_table_sheets(**params)
@@ -776,6 +777,7 @@ Send a prompt to an AI model supported by Unique FinanceGPT and receive a result
776
777
  ```python
777
778
  chat_completion = unique_sdk.ChatCompletion.create(
778
779
  company_id=company_id,
780
+ user_id=user_id
779
781
  model="AZURE_GPT_35_TURBO",
780
782
  messages=[
781
783
  {"role": "system", "content": "You are a helpful assistant."},
@@ -1229,6 +1231,12 @@ All notable changes to this project will be documented in this file.
1229
1231
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1230
1232
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1231
1233
 
1234
+ ## [0.9.37] - 2025-07-10
1235
+ - Add `sheetName` property to the `MagicTableSheetIngestParams` object used by function that ingests magic table sheets.
1236
+
1237
+ ## [0.9.36] - 2025-06-23
1238
+ - Allow passing a user id when creating chat completions. This is optional and it does not impact the current behaviour.
1239
+
1232
1240
  ## [0.9.35] - 2025-06-18
1233
1241
  - Allow scope access updates (add/remove) on folder based on scope id or path.
1234
1242
 
@@ -15,8 +15,8 @@ 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
19
- unique_sdk/api_resources/_content.py,sha256=BLv4qXdazSYy_L0Z9ihr0hquE3xFIY32CBpfbOkxSpE,9527
18
+ unique_sdk/api_resources/_chat_completion.py,sha256=ILCAffxkbkfh2iV9L4KKnfe80gZmT9pWfkNmf3mq68U,2172
19
+ unique_sdk/api_resources/_content.py,sha256=KIbAjXcf_-YiXAByW4wRYqLAqst47Bup8YXTIQ-PnTo,9550
20
20
  unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
21
21
  unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
22
22
  unique_sdk/api_resources/_folder.py,sha256=dmPorUoOJSe-hcxlJq3RnkQeZg3gPqGF37ZsLgnloT0,8335
@@ -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.37.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
34
+ unique_sdk-0.9.37.dist-info/METADATA,sha256=tz98-696Y9ujWVzddPXko63umIjnmkJ7yTOKBcraTtg,39512
35
+ unique_sdk-0.9.37.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ unique_sdk-0.9.37.dist-info/RECORD,,