unique_sdk 0.10.20__tar.gz → 0.10.21__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.
Files changed (43) hide show
  1. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/PKG-INFO +7 -3
  3. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/README.md +3 -2
  4. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/pyproject.toml +1 -1
  5. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_chat_completion.py +49 -0
  6. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/LICENSE +0 -0
  7. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_agentic_table.py +0 -0
  25. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_content.py +0 -0
  26. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_embedding.py +0 -0
  27. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_event.py +0 -0
  28. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_folder.py +0 -0
  29. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_integrated.py +0 -0
  30. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_mcp.py +0 -0
  31. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_message.py +0 -0
  32. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_message_assessment.py +0 -0
  33. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_message_execution.py +0 -0
  34. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_message_log.py +0 -0
  35. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_search.py +0 -0
  36. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_search_string.py +0 -0
  37. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  38. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/api_resources/_space.py +0 -0
  39. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/utils/chat_history.py +0 -0
  40. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/utils/chat_in_space.py +0 -0
  41. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/utils/file_io.py +0 -0
  42. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/unique_sdk/utils/sources.py +0 -0
  43. {unique_sdk-0.10.20 → unique_sdk-0.10.21}/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.10.21] - 2025-09-04
9
+ - Update Chat Completions API types and add support for reasoning effort.
10
+
8
11
  ## [0.10.20] - 2025-09-04
9
12
  - Update Responses API types
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.20
3
+ Version: 0.10.21
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -791,8 +791,9 @@ chat_completion = unique_sdk.ChatCompletion.create(
791
791
  {"role": "user", "content": "Hello!"},
792
792
  ],
793
793
  options={
794
- "temperature": 0.5
795
- } # optional
794
+ "temperature": 0.5, # optional
795
+ "reasoningEffort": "low", # optional
796
+ } # optional
796
797
  )
797
798
  ```
798
799
 
@@ -1577,6 +1578,9 @@ All notable changes to this project will be documented in this file.
1577
1578
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1578
1579
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1579
1580
 
1581
+ ## [0.10.21] - 2025-09-04
1582
+ - Update Chat Completions API types and add support for reasoning effort.
1583
+
1580
1584
  ## [0.10.20] - 2025-09-04
1581
1585
  - Update Responses API types
1582
1586
 
@@ -773,8 +773,9 @@ chat_completion = unique_sdk.ChatCompletion.create(
773
773
  {"role": "user", "content": "Hello!"},
774
774
  ],
775
775
  options={
776
- "temperature": 0.5
777
- } # optional
776
+ "temperature": 0.5, # optional
777
+ "reasoningEffort": "low", # optional
778
+ } # optional
778
779
  )
779
780
  ```
780
781
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.10.20"
3
+ version = "0.10.21"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -1,10 +1,13 @@
1
1
  from typing import (
2
+ Any,
2
3
  ClassVar,
4
+ Dict,
3
5
  List,
4
6
  Literal,
5
7
  NotRequired,
6
8
  Optional,
7
9
  TypedDict,
10
+ Union,
8
11
  Unpack,
9
12
  cast,
10
13
  )
@@ -34,6 +37,51 @@ class ChatCompletionChoicesInner(TypedDict):
34
37
  class ChatCompletion(APIResource["ChatCompletion"]):
35
38
  OBJECT_NAME: ClassVar[Literal["openai.chat.completion"]] = "openai.chat.completion"
36
39
 
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
+
37
85
  class CreateParams(RequestOptions):
38
86
  model: NotRequired[
39
87
  Literal[
@@ -43,6 +91,7 @@ class ChatCompletion(APIResource["ChatCompletion"]):
43
91
  ]
44
92
  timeout: NotRequired[Optional["int"]]
45
93
  messages: List[ChatCompletionRequestMessage]
94
+ options: NotRequired["ChatCompletion.Options"]
46
95
 
47
96
  model: Literal[
48
97
  "AZURE_GPT_4_0613",
File without changes