unique_toolkit 0.8.20__py3-none-any.whl → 0.8.21__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.
@@ -94,6 +94,7 @@ def complete(
94
94
 
95
95
  async def complete_async(
96
96
  company_id: str,
97
+ user_id: str,
97
98
  messages: LanguageModelMessages | list[ChatCompletionMessageParam],
98
99
  model_name: LanguageModelName | str,
99
100
  temperature: float = DEFAULT_COMPLETE_TEMPERATURE,
@@ -142,6 +143,7 @@ async def complete_async(
142
143
  try:
143
144
  response = await unique_sdk.ChatCompletion.create_async(
144
145
  company_id=company_id,
146
+ user_id=user_id,
145
147
  model=model,
146
148
  messages=cast(
147
149
  "list[unique_sdk.Integrated.ChatCompletionRequestMessage]",
@@ -419,6 +421,7 @@ def complete_with_references(
419
421
 
420
422
  async def complete_with_references_async(
421
423
  company_id: str,
424
+ user_id: str,
422
425
  messages: LanguageModelMessages,
423
426
  model_name: LanguageModelName | str,
424
427
  content_chunks: list[ContentChunk] | None = None,
@@ -432,6 +435,7 @@ async def complete_with_references_async(
432
435
  # Use toolkit language model functions for chat completion
433
436
  response = await complete_async(
434
437
  company_id=company_id,
438
+ user_id=user_id,
435
439
  model_name=model_name,
436
440
  messages=messages,
437
441
  temperature=temperature,
@@ -261,6 +261,7 @@ class LanguageModelService:
261
261
 
262
262
  return await complete_async(
263
263
  company_id=self._company_id,
264
+ user_id=self._user_id,
264
265
  messages=messages,
265
266
  model_name=model_name,
266
267
  temperature=temperature,
@@ -276,6 +277,7 @@ class LanguageModelService:
276
277
  async def complete_async_util(
277
278
  cls,
278
279
  company_id: str,
280
+ user_id: str,
279
281
  messages: LanguageModelMessages,
280
282
  model_name: LanguageModelName | str,
281
283
  temperature: float = DEFAULT_COMPLETE_TEMPERATURE,
@@ -291,6 +293,7 @@ class LanguageModelService:
291
293
 
292
294
  return await complete_async(
293
295
  company_id=company_id,
296
+ user_id=user_id,
294
297
  messages=messages,
295
298
  model_name=model_name,
296
299
  temperature=temperature,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.8.20
3
+ Version: 0.8.21
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -114,9 +114,15 @@ All notable changes to this project will be documented in this file.
114
114
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
115
115
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
116
116
 
117
+ ## [0.8.21] - 2025-08-26
118
+ - Fixed old (not used) function "create_async" in language_model.functions : The function always returns "Unauthorized" --> Added "user_id" argument to fix this.
119
+
117
120
  ## [0.8.20] - 2025-08-24
118
121
  - Fixed forced-tool-calls
119
122
 
123
+ ## [0.8.20] - 2025-08-05
124
+ - Bump SDK version to support the latest features.
125
+
120
126
  ## [0.8.19] - 2025-08-24
121
127
  - Enforce usage of ruff using pipeline
122
128
 
@@ -77,12 +77,12 @@ unique_toolkit/history_manager/utils.py,sha256=iu4LsYOElx8HlZjcx3ZC75I-TmEYBiEP9
77
77
  unique_toolkit/language_model/__init__.py,sha256=lRQyLlbwHbNFf4-0foBU13UGb09lwEeodbVsfsSgaCk,1971
78
78
  unique_toolkit/language_model/builder.py,sha256=4OKfwJfj3TrgO1ezc_ewIue6W7BCQ2ZYQXUckWVPPTA,3369
79
79
  unique_toolkit/language_model/constants.py,sha256=B-topqW0r83dkC_25DeQfnPk3n53qzIHUCBS7YJ0-1U,119
80
- unique_toolkit/language_model/functions.py,sha256=-nWgcscaZvEfuf2ftCQj8hyFY2RynPFO8XgX2gsN924,16665
80
+ unique_toolkit/language_model/functions.py,sha256=ByKA9AZVMxuGP0P52bEDk5Z6N7R45cXaCuBiHb7NZWc,16755
81
81
  unique_toolkit/language_model/infos.py,sha256=2WvhsgLDuiAuZ_gtV-aiRg1LafwXbHpiEMYYXWqdxWc,45703
82
82
  unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
83
83
  unique_toolkit/language_model/reference.py,sha256=nkX2VFz-IrUz8yqyc3G5jUMNwrNpxITBrMEKkbqqYoI,8583
84
84
  unique_toolkit/language_model/schemas.py,sha256=EOgy-p1GRcS46Sq0qEsN8MfOMl-KCcvEd9aCmqm9d08,16497
85
- unique_toolkit/language_model/service.py,sha256=N_I3VtK5B0G8s5c6TcBVWM7CcLGqakDhEdHQ_z-Hcok,11676
85
+ unique_toolkit/language_model/service.py,sha256=UOYYYO2xaN35mSc6d_lmkCrn9Iyj_ypm6rqvsONLAXY,11762
86
86
  unique_toolkit/language_model/utils.py,sha256=bPQ4l6_YO71w-zaIPanUUmtbXC1_hCvLK0tAFc3VCRc,1902
87
87
  unique_toolkit/postprocessor/postprocessor_manager.py,sha256=yf34VMwZfwGjmDbVeMJ5JN3ET4N68V39EF9kiWVUa_Y,4213
88
88
  unique_toolkit/protocols/support.py,sha256=V15WEIFKVMyF1QCnR8vIi4GrJy4dfTCB6d6JlqPZ58o,2341
@@ -107,7 +107,7 @@ unique_toolkit/tools/utils/execution/execution.py,sha256=vjG2Y6awsGNtlvyQAGCTthQ
107
107
  unique_toolkit/tools/utils/source_handling/schema.py,sha256=vzAyf6ZWNexjMO0OrnB8y2glGkvAilmGGQXd6zcDaKw,870
108
108
  unique_toolkit/tools/utils/source_handling/source_formatting.py,sha256=C7uayNbdkNVJdEARA5CENnHtNY1SU6etlaqbgHNyxaQ,9152
109
109
  unique_toolkit/tools/utils/source_handling/tests/test_source_formatting.py,sha256=oM5ZxEgzROrnX1229KViCAFjRxl9wCTzWZoinYSHleM,6979
110
- unique_toolkit-0.8.20.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
111
- unique_toolkit-0.8.20.dist-info/METADATA,sha256=aBoWGMKrGjXZztoTaCqQF4w5CZ-P-4aZJ0QCqL09sjk,28053
112
- unique_toolkit-0.8.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- unique_toolkit-0.8.20.dist-info/RECORD,,
110
+ unique_toolkit-0.8.21.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
111
+ unique_toolkit-0.8.21.dist-info/METADATA,sha256=h58IrH1nT5r5bOi2fDSTXBFl8itzZo2Uq1foVlskhBI,28318
112
+ unique_toolkit-0.8.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ unique_toolkit-0.8.21.dist-info/RECORD,,