unique_sdk 0.9.9__py3-none-any.whl → 0.9.11__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.
- unique_sdk/api_resources/_chat_completion.py +1 -1
- unique_sdk/api_resources/_content.py +4 -0
- unique_sdk/api_resources/_integrated.py +0 -1
- {unique_sdk-0.9.9.dist-info → unique_sdk-0.9.11.dist-info}/METADATA +14 -3
- {unique_sdk-0.9.9.dist-info → unique_sdk-0.9.11.dist-info}/RECORD +7 -7
- {unique_sdk-0.9.9.dist-info → unique_sdk-0.9.11.dist-info}/LICENSE +0 -0
- {unique_sdk-0.9.9.dist-info → unique_sdk-0.9.11.dist-info}/WHEEL +0 -0
|
@@ -17,6 +17,7 @@ class ChatCompletionRequestMessage(TypedDict, total=False):
|
|
|
17
17
|
role: Literal["system", "user", "assistant"]
|
|
18
18
|
content: str
|
|
19
19
|
name: Optional[str]
|
|
20
|
+
tool_call_id: Optional[str]
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
class ChatCompletionResponseMessage(TypedDict):
|
|
@@ -43,7 +44,6 @@ class ChatCompletion(APIResource["ChatCompletion"]):
|
|
|
43
44
|
]
|
|
44
45
|
]
|
|
45
46
|
timeout: NotRequired[Optional["int"]]
|
|
46
|
-
temperature: NotRequired[Optional["float"]]
|
|
47
47
|
messages: List[ChatCompletionRequestMessage]
|
|
48
48
|
|
|
49
49
|
model: Literal[
|
|
@@ -65,6 +65,9 @@ class Content(APIResource["Content"]):
|
|
|
65
65
|
where: "Content.ContentWhereInput"
|
|
66
66
|
chatId: NotRequired[str]
|
|
67
67
|
|
|
68
|
+
class IngestionConfig(TypedDict):
|
|
69
|
+
uniqueIngestionMode: str
|
|
70
|
+
|
|
68
71
|
class Input(TypedDict):
|
|
69
72
|
key: str
|
|
70
73
|
title: Optional[str]
|
|
@@ -72,6 +75,7 @@ class Content(APIResource["Content"]):
|
|
|
72
75
|
ownerType: str
|
|
73
76
|
ownerId: str
|
|
74
77
|
byteSize: Optional[int]
|
|
78
|
+
ingestionConfig: "Content.IngestionConfig"
|
|
75
79
|
|
|
76
80
|
class UpsertParams(RequestOptions):
|
|
77
81
|
input: "Content.Input"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.11
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -470,7 +470,9 @@ unique_sdk.Integrated.chat_stream_completion(
|
|
|
470
470
|
startText= "I want to tell you about: ", # optional
|
|
471
471
|
model= "AZURE_GPT_4_32K_0613", # optional
|
|
472
472
|
timeout=8000, # optional in ms
|
|
473
|
-
|
|
473
|
+
options={
|
|
474
|
+
"temperature": 0.5
|
|
475
|
+
} # optional
|
|
474
476
|
)
|
|
475
477
|
```
|
|
476
478
|
|
|
@@ -489,7 +491,10 @@ chat_completion = unique_sdk.ChatCompletion.create(
|
|
|
489
491
|
messages=[
|
|
490
492
|
{"role": "system", "content": "You are a helpful assistant."},
|
|
491
493
|
{"role": "user", "content": "Hello!"},
|
|
492
|
-
]
|
|
494
|
+
],
|
|
495
|
+
options={
|
|
496
|
+
"temperature": 0.5
|
|
497
|
+
} # optional
|
|
493
498
|
)
|
|
494
499
|
```
|
|
495
500
|
|
|
@@ -894,6 +899,12 @@ All notable changes to this project will be documented in this file.
|
|
|
894
899
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
895
900
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
896
901
|
|
|
902
|
+
## [0.9.11] - 2024-11-18
|
|
903
|
+
- Add `ingestionConfig` to `UpsertParams.Input` parameters
|
|
904
|
+
|
|
905
|
+
## [0.9.10] - 2024-10-23
|
|
906
|
+
- Remove `temperature` parameter from `Integrated.chat_stream_completion`, `Integrated.chat_stream_completion_async`, `ChatCompletion.create` and `ChatCompletion.create_async` methods. To use `temperature` parameter, set the attribute in `options` parameter instead.
|
|
907
|
+
|
|
897
908
|
## [0.9.9] - 2024-10-23
|
|
898
909
|
- Revert deletion of `Message.retrieve` method
|
|
899
910
|
|
|
@@ -15,11 +15,11 @@ unique_sdk/_version.py,sha256=bLj15cDf-jfrKLtrOqhC3kl-ZIlt9q8ieogbrosWe_g,18
|
|
|
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=
|
|
19
|
-
unique_sdk/api_resources/_content.py,sha256=
|
|
18
|
+
unique_sdk/api_resources/_chat_completion.py,sha256=Hif_kbY0OmW54nG7Ad-up_kvbhejssP5Yd7nLeDHacU,2144
|
|
19
|
+
unique_sdk/api_resources/_content.py,sha256=MrAXhgZS3v2S9OwKh3ROfv5wU8Y947A6gD3wgaYe_aM,4989
|
|
20
20
|
unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
|
|
21
21
|
unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
|
|
22
|
-
unique_sdk/api_resources/_integrated.py,sha256=
|
|
22
|
+
unique_sdk/api_resources/_integrated.py,sha256=R5a5oSVQXkh5xyeFwor-7sfePsBdtUyh8SbTMS6AMz4,3036
|
|
23
23
|
unique_sdk/api_resources/_message.py,sha256=gEDIzg3METZU2k7m69meAuf0IWmZxnYOjbBKPRMwPYE,7688
|
|
24
24
|
unique_sdk/api_resources/_search.py,sha256=UPFD-rQfvcqFAj7P5kWlp56uroK1y6pglRR3iyw02_c,1806
|
|
25
25
|
unique_sdk/api_resources/_search_string.py,sha256=I43XqKfYwWSwhZ4r0UHx5fs1MUGbLszWHrxqBvo6Tx8,1785
|
|
@@ -28,7 +28,7 @@ unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUo
|
|
|
28
28
|
unique_sdk/utils/file_io.py,sha256=tcS-5NA97AyiJPhKpWs3i0qKNFsZlttToxrvnWRDJrs,3857
|
|
29
29
|
unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
|
|
30
30
|
unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
|
|
31
|
-
unique_sdk-0.9.
|
|
32
|
-
unique_sdk-0.9.
|
|
33
|
-
unique_sdk-0.9.
|
|
34
|
-
unique_sdk-0.9.
|
|
31
|
+
unique_sdk-0.9.11.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
|
|
32
|
+
unique_sdk-0.9.11.dist-info/METADATA,sha256=RjHhIAWryMqKEzBEqHDGI4SKMGWZDF1s6t_7jvMWOrU,27975
|
|
33
|
+
unique_sdk-0.9.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
34
|
+
unique_sdk-0.9.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|