unique_sdk 0.9.9__py3-none-any.whl → 0.9.10__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.
@@ -43,7 +43,6 @@ class ChatCompletion(APIResource["ChatCompletion"]):
43
43
  ]
44
44
  ]
45
45
  timeout: NotRequired[Optional["int"]]
46
- temperature: NotRequired[Optional["float"]]
47
46
  messages: List[ChatCompletionRequestMessage]
48
47
 
49
48
  model: Literal[
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.9
3
+ Version: 0.9.10
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,9 @@ 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.10] - 2024-10-23
903
+ - 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.
904
+
897
905
  ## [0.9.9] - 2024-10-23
898
906
  - Revert deletion of `Message.retrieve` method
899
907
 
@@ -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=ekoeP3YZHQ9vQmcHehz2yTRRsNf_3OTyLE9puZ0hXQU,2164
18
+ unique_sdk/api_resources/_chat_completion.py,sha256=A2U5tgIs9YMF18s-W-O6R2BxlghIQqfRB6Pq4C1_LqA,2112
19
19
  unique_sdk/api_resources/_content.py,sha256=cYf2b2b_0v0Kmx_MV12maZLZN85HnGBED6ksQ-NrnJ4,4866
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=M66dEM6i1M-EGwP1ryDKhKyLSazhj_-4EGTKsJ4WkMM,3078
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.9.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
- unique_sdk-0.9.9.dist-info/METADATA,sha256=DprZEaR1IjeQuhzjbBPUStkTp93G2YACVtl8vx57-T8,27486
33
- unique_sdk-0.9.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- unique_sdk-0.9.9.dist-info/RECORD,,
31
+ unique_sdk-0.9.10.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
+ unique_sdk-0.9.10.dist-info/METADATA,sha256=B3nCm7n91jbol7E4h8Hy_Fn6He3ost7TS21fBalqkeM,27888
33
+ unique_sdk-0.9.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ unique_sdk-0.9.10.dist-info/RECORD,,