unique_sdk 0.10.21__tar.gz → 0.10.23__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.
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/CHANGELOG.md +6 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/PKG-INFO +14 -4
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/README.md +7 -3
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/pyproject.toml +1 -1
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_chat_completion.py +0 -49
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_content.py +4 -3
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/LICENSE +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_message_execution.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/api_resources/_space.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/utils/chat_in_space.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.21 → unique_sdk-0.10.23}/unique_sdk/utils/token.py +0 -0
@@ -5,6 +5,12 @@ 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.10.23] - 2025-09-12
|
9
|
+
- Revert to using default reasoning effort.
|
10
|
+
|
11
|
+
## [0.10.22] - 2025-09-12
|
12
|
+
- Add support for metadata update of a file.
|
13
|
+
|
8
14
|
## [0.10.21] - 2025-09-04
|
9
15
|
- Update Chat Completions API types and add support for reasoning effort.
|
10
16
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_sdk
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.23
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Author: Martin Fadler
|
@@ -565,11 +565,13 @@ Allows you to update a file specified by its `contentId`.
|
|
565
565
|
Currently, the following updates are supported:
|
566
566
|
|
567
567
|
Title update:
|
568
|
-
- `title` optional, allows updating the title of the
|
568
|
+
- `title` optional, allows updating the title of the file
|
569
569
|
|
570
570
|
Move the file to a different folder. this can be done by specifying either the `ownerId`.
|
571
571
|
- `ownerId` optional, allows moving the file to a different folder. Represents the new folder for the file and it should be the id of a folder e.g.: `scope_dhjfieurfloakmdle`.
|
572
572
|
|
573
|
+
Metadata update:
|
574
|
+
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be ovrriden. (Available with release >.40)
|
573
575
|
|
574
576
|
Example of moving a file specified by its content id.
|
575
577
|
|
@@ -578,7 +580,10 @@ unique_sdk.Content.update(
|
|
578
580
|
user_id=user_id,
|
579
581
|
company_id=company_id,
|
580
582
|
contentId="cont_ok2343q5owbce80w78hudawu5",
|
581
|
-
ownerId="scope_e68yz5asho7glfh7c7d041el"
|
583
|
+
ownerId="scope_e68yz5asho7glfh7c7d041el",
|
584
|
+
metadata={
|
585
|
+
"quarter": "q1",
|
586
|
+
}
|
582
587
|
)
|
583
588
|
```
|
584
589
|
|
@@ -792,7 +797,6 @@ chat_completion = unique_sdk.ChatCompletion.create(
|
|
792
797
|
],
|
793
798
|
options={
|
794
799
|
"temperature": 0.5, # optional
|
795
|
-
"reasoningEffort": "low", # optional
|
796
800
|
} # optional
|
797
801
|
)
|
798
802
|
```
|
@@ -1578,6 +1582,12 @@ All notable changes to this project will be documented in this file.
|
|
1578
1582
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
1579
1583
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
1580
1584
|
|
1585
|
+
## [0.10.23] - 2025-09-12
|
1586
|
+
- Revert to using default reasoning effort.
|
1587
|
+
|
1588
|
+
## [0.10.22] - 2025-09-12
|
1589
|
+
- Add support for metadata update of a file.
|
1590
|
+
|
1581
1591
|
## [0.10.21] - 2025-09-04
|
1582
1592
|
- Update Chat Completions API types and add support for reasoning effort.
|
1583
1593
|
|
@@ -547,11 +547,13 @@ Allows you to update a file specified by its `contentId`.
|
|
547
547
|
Currently, the following updates are supported:
|
548
548
|
|
549
549
|
Title update:
|
550
|
-
- `title` optional, allows updating the title of the
|
550
|
+
- `title` optional, allows updating the title of the file
|
551
551
|
|
552
552
|
Move the file to a different folder. this can be done by specifying either the `ownerId`.
|
553
553
|
- `ownerId` optional, allows moving the file to a different folder. Represents the new folder for the file and it should be the id of a folder e.g.: `scope_dhjfieurfloakmdle`.
|
554
554
|
|
555
|
+
Metadata update:
|
556
|
+
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be ovrriden. (Available with release >.40)
|
555
557
|
|
556
558
|
Example of moving a file specified by its content id.
|
557
559
|
|
@@ -560,7 +562,10 @@ unique_sdk.Content.update(
|
|
560
562
|
user_id=user_id,
|
561
563
|
company_id=company_id,
|
562
564
|
contentId="cont_ok2343q5owbce80w78hudawu5",
|
563
|
-
ownerId="scope_e68yz5asho7glfh7c7d041el"
|
565
|
+
ownerId="scope_e68yz5asho7glfh7c7d041el",
|
566
|
+
metadata={
|
567
|
+
"quarter": "q1",
|
568
|
+
}
|
564
569
|
)
|
565
570
|
```
|
566
571
|
|
@@ -774,7 +779,6 @@ chat_completion = unique_sdk.ChatCompletion.create(
|
|
774
779
|
],
|
775
780
|
options={
|
776
781
|
"temperature": 0.5, # optional
|
777
|
-
"reasoningEffort": "low", # optional
|
778
782
|
} # optional
|
779
783
|
)
|
780
784
|
```
|
@@ -1,13 +1,10 @@
|
|
1
1
|
from typing import (
|
2
|
-
Any,
|
3
2
|
ClassVar,
|
4
|
-
Dict,
|
5
3
|
List,
|
6
4
|
Literal,
|
7
5
|
NotRequired,
|
8
6
|
Optional,
|
9
7
|
TypedDict,
|
10
|
-
Union,
|
11
8
|
Unpack,
|
12
9
|
cast,
|
13
10
|
)
|
@@ -37,51 +34,6 @@ class ChatCompletionChoicesInner(TypedDict):
|
|
37
34
|
class ChatCompletion(APIResource["ChatCompletion"]):
|
38
35
|
OBJECT_NAME: ClassVar[Literal["openai.chat.completion"]] = "openai.chat.completion"
|
39
36
|
|
40
|
-
class FunctionDefinition(TypedDict, total=False):
|
41
|
-
name: str
|
42
|
-
description: Optional[str]
|
43
|
-
parameters: Optional[Dict[str, Any]]
|
44
|
-
|
45
|
-
class ChatCompletionsFunctionToolDefinition(TypedDict):
|
46
|
-
type: Literal["function"]
|
47
|
-
function: "ChatCompletion.FunctionDefinition"
|
48
|
-
|
49
|
-
class FunctionName(TypedDict):
|
50
|
-
name: str
|
51
|
-
|
52
|
-
class ChatCompletionsNamedFunctionToolSelectionName(TypedDict):
|
53
|
-
name: str
|
54
|
-
|
55
|
-
class ChatCompletionsNamedFunctionToolSelection(TypedDict):
|
56
|
-
type: Literal["function"]
|
57
|
-
function: "ChatCompletion.ChatCompletionsNamedFunctionToolSelectionName"
|
58
|
-
|
59
|
-
class ChatCompletionsTextResponseFormat(TypedDict, total=False):
|
60
|
-
type: Literal["text", "json_schema"]
|
61
|
-
json_schema: dict
|
62
|
-
|
63
|
-
class Options(TypedDict, total=False):
|
64
|
-
functions: NotRequired[List["ChatCompletion.FunctionDefinition"]]
|
65
|
-
reasoningEffort: NotRequired[Literal["low", "medium", "high", None]]
|
66
|
-
functionCall: NotRequired[
|
67
|
-
Union[Literal["auto", "none"], "ChatCompletion.FunctionName"]
|
68
|
-
]
|
69
|
-
maxTokens: NotRequired[int]
|
70
|
-
temperature: NotRequired[float]
|
71
|
-
topP: NotRequired[float]
|
72
|
-
logitBias: NotRequired[Dict[str, float]]
|
73
|
-
user: NotRequired[str]
|
74
|
-
n: NotRequired[int]
|
75
|
-
stop: NotRequired[List[str]]
|
76
|
-
presencePenalty: NotRequired[float]
|
77
|
-
frequencyPenalty: NotRequired[float]
|
78
|
-
seed: NotRequired[int]
|
79
|
-
responseFormat: NotRequired["ChatCompletion.ChatCompletionsTextResponseFormat"]
|
80
|
-
tools: NotRequired[List["ChatCompletion.ChatCompletionsFunctionToolDefinition"]]
|
81
|
-
toolChoice: NotRequired[
|
82
|
-
"ChatCompletion.ChatCompletionsNamedFunctionToolSelection"
|
83
|
-
]
|
84
|
-
|
85
37
|
class CreateParams(RequestOptions):
|
86
38
|
model: NotRequired[
|
87
39
|
Literal[
|
@@ -91,7 +43,6 @@ class ChatCompletion(APIResource["ChatCompletion"]):
|
|
91
43
|
]
|
92
44
|
timeout: NotRequired[Optional["int"]]
|
93
45
|
messages: List[ChatCompletionRequestMessage]
|
94
|
-
options: NotRequired["ChatCompletion.Options"]
|
95
46
|
|
96
47
|
model: Literal[
|
97
48
|
"AZURE_GPT_4_0613",
|
@@ -128,9 +128,10 @@ class Content(APIResource["Content"]):
|
|
128
128
|
fileUrl: Optional[str]
|
129
129
|
|
130
130
|
class UpdateParams(RequestOptions):
|
131
|
-
contentId: str
|
132
|
-
ownerId: str
|
133
|
-
title: str
|
131
|
+
contentId: NotRequired[str]
|
132
|
+
ownerId: NotRequired[str]
|
133
|
+
title: NotRequired[str]
|
134
|
+
metadata: NotRequired[dict[str, str | None]]
|
134
135
|
|
135
136
|
class Chunk(TypedDict):
|
136
137
|
id: str
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|