unique_sdk 0.9.9__tar.gz → 0.9.11__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 (35) hide show
  1. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/CHANGELOG.md +6 -0
  2. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/PKG-INFO +14 -3
  3. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/README.md +7 -2
  4. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/pyproject.toml +1 -1
  5. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_chat_completion.py +1 -1
  6. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_content.py +4 -0
  7. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_integrated.py +0 -1
  8. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/LICENSE +0 -0
  9. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/__init__.py +0 -0
  10. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_api_requestor.py +0 -0
  11. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_api_resource.py +0 -0
  12. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_api_version.py +0 -0
  13. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_error.py +0 -0
  14. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_http_client.py +0 -0
  15. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_list_object.py +0 -0
  16. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_object_classes.py +0 -0
  17. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_request_options.py +0 -0
  18. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_unique_object.py +0 -0
  19. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_unique_ql.py +0 -0
  20. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_unique_response.py +0 -0
  21. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_util.py +0 -0
  22. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_version.py +0 -0
  23. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/_webhook.py +0 -0
  24. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/__init__.py +0 -0
  25. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_acronyms.py +0 -0
  26. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_embedding.py +0 -0
  27. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_event.py +0 -0
  28. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_message.py +0 -0
  29. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_search.py +0 -0
  30. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_search_string.py +0 -0
  31. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  32. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/utils/chat_history.py +0 -0
  33. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/utils/file_io.py +0 -0
  34. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/unique_sdk/utils/sources.py +0 -0
  35. {unique_sdk-0.9.9 → unique_sdk-0.9.11}/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.9.11] - 2024-11-18
9
+ - Add `ingestionConfig` to `UpsertParams.Input` parameters
10
+
11
+ ## [0.9.10] - 2024-10-23
12
+ - 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.
13
+
8
14
  ## [0.9.9] - 2024-10-23
9
15
  - Revert deletion of `Message.retrieve` method
10
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.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
- temperature=0.3, # optional
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
 
@@ -455,7 +455,9 @@ unique_sdk.Integrated.chat_stream_completion(
455
455
  startText= "I want to tell you about: ", # optional
456
456
  model= "AZURE_GPT_4_32K_0613", # optional
457
457
  timeout=8000, # optional in ms
458
- temperature=0.3, # optional
458
+ options={
459
+ "temperature": 0.5
460
+ } # optional
459
461
  )
460
462
  ```
461
463
 
@@ -474,7 +476,10 @@ chat_completion = unique_sdk.ChatCompletion.create(
474
476
  messages=[
475
477
  {"role": "system", "content": "You are a helpful assistant."},
476
478
  {"role": "user", "content": "Hello!"},
477
- ]
479
+ ],
480
+ options={
481
+ "temperature": 0.5
482
+ } # optional
478
483
  )
479
484
  ```
480
485
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.9.9"
3
+ version = "0.9.11"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -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"
@@ -45,7 +45,6 @@ class Integrated(APIResource["Integrated"]):
45
45
  ]
46
46
  ]
47
47
  timeout: NotRequired["int"]
48
- temperature: NotRequired["float"]
49
48
  messages: List["Integrated.ChatCompletionRequestMessage"]
50
49
  searchContext: NotRequired[List["Integrated.SearchResult"]]
51
50
  chatId: str
File without changes