@@ -76,6 +76,7 @@ def create(
76
76
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
77
77
model : Optional [str ] | NotGiven = NOT_GIVEN ,
78
78
stream : Optional [Literal [False ]] | NotGiven = NOT_GIVEN ,
79
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
79
80
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
80
81
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
81
82
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -114,6 +115,10 @@ def create(
114
115
events, terminating when the Run enters a terminal state with a `data: [DONE]`
115
116
message.
116
117
118
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
119
+ make the output more random, while lower values like 0.2 will make it more
120
+ focused and deterministic.
121
+
117
122
tools: Override the tools the assistant can use for this run. This is useful for
118
123
modifying the behavior on a per-run basis.
119
124
@@ -138,6 +143,7 @@ def create(
138
143
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
139
144
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
140
145
model : Optional [str ] | NotGiven = NOT_GIVEN ,
146
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
141
147
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
142
148
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
143
149
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -176,6 +182,10 @@ def create(
176
182
model associated with the assistant. If not, the model associated with the
177
183
assistant will be used.
178
184
185
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
186
+ make the output more random, while lower values like 0.2 will make it more
187
+ focused and deterministic.
188
+
179
189
tools: Override the tools the assistant can use for this run. This is useful for
180
190
modifying the behavior on a per-run basis.
181
191
@@ -200,6 +210,7 @@ def create(
200
210
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
201
211
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
202
212
model : Optional [str ] | NotGiven = NOT_GIVEN ,
213
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
203
214
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
204
215
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
205
216
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -238,6 +249,10 @@ def create(
238
249
model associated with the assistant. If not, the model associated with the
239
250
assistant will be used.
240
251
252
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
253
+ make the output more random, while lower values like 0.2 will make it more
254
+ focused and deterministic.
255
+
241
256
tools: Override the tools the assistant can use for this run. This is useful for
242
257
modifying the behavior on a per-run basis.
243
258
@@ -262,6 +277,7 @@ def create(
262
277
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
263
278
model : Optional [str ] | NotGiven = NOT_GIVEN ,
264
279
stream : Optional [Literal [False ]] | Literal [True ] | NotGiven = NOT_GIVEN ,
280
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
265
281
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
266
282
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
267
283
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -283,6 +299,7 @@ def create(
283
299
"metadata" : metadata ,
284
300
"model" : model ,
285
301
"stream" : stream ,
302
+ "temperature" : temperature ,
286
303
"tools" : tools ,
287
304
},
288
305
run_create_params .RunCreateParams ,
@@ -489,6 +506,7 @@ def create_and_stream(
489
506
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
490
507
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
491
508
model : Optional [str ] | NotGiven = NOT_GIVEN ,
509
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
492
510
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
493
511
thread_id : str ,
494
512
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -510,6 +528,7 @@ def create_and_stream(
510
528
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
511
529
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
512
530
model : Optional [str ] | NotGiven = NOT_GIVEN ,
531
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
513
532
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
514
533
thread_id : str ,
515
534
event_handler : AssistantEventHandlerT ,
@@ -531,6 +550,7 @@ def create_and_stream(
531
550
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
532
551
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
533
552
model : Optional [str ] | NotGiven = NOT_GIVEN ,
553
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
534
554
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
535
555
thread_id : str ,
536
556
event_handler : AssistantEventHandlerT | None = None ,
@@ -561,6 +581,7 @@ def create_and_stream(
561
581
"instructions" : instructions ,
562
582
"metadata" : metadata ,
563
583
"model" : model ,
584
+ "temperature" : temperature ,
564
585
"stream" : True ,
565
586
"tools" : tools ,
566
587
},
@@ -841,6 +862,7 @@ async def create(
841
862
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
842
863
model : Optional [str ] | NotGiven = NOT_GIVEN ,
843
864
stream : Optional [Literal [False ]] | NotGiven = NOT_GIVEN ,
865
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
844
866
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
845
867
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
846
868
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -879,6 +901,10 @@ async def create(
879
901
events, terminating when the Run enters a terminal state with a `data: [DONE]`
880
902
message.
881
903
904
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
905
+ make the output more random, while lower values like 0.2 will make it more
906
+ focused and deterministic.
907
+
882
908
tools: Override the tools the assistant can use for this run. This is useful for
883
909
modifying the behavior on a per-run basis.
884
910
@@ -903,6 +929,7 @@ async def create(
903
929
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
904
930
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
905
931
model : Optional [str ] | NotGiven = NOT_GIVEN ,
932
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
906
933
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
907
934
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
908
935
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -941,6 +968,10 @@ async def create(
941
968
model associated with the assistant. If not, the model associated with the
942
969
assistant will be used.
943
970
971
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
972
+ make the output more random, while lower values like 0.2 will make it more
973
+ focused and deterministic.
974
+
944
975
tools: Override the tools the assistant can use for this run. This is useful for
945
976
modifying the behavior on a per-run basis.
946
977
@@ -965,6 +996,7 @@ async def create(
965
996
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
966
997
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
967
998
model : Optional [str ] | NotGiven = NOT_GIVEN ,
999
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
968
1000
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
969
1001
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
970
1002
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1003,6 +1035,10 @@ async def create(
1003
1035
model associated with the assistant. If not, the model associated with the
1004
1036
assistant will be used.
1005
1037
1038
+ temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
1039
+ make the output more random, while lower values like 0.2 will make it more
1040
+ focused and deterministic.
1041
+
1006
1042
tools: Override the tools the assistant can use for this run. This is useful for
1007
1043
modifying the behavior on a per-run basis.
1008
1044
@@ -1027,6 +1063,7 @@ async def create(
1027
1063
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1028
1064
model : Optional [str ] | NotGiven = NOT_GIVEN ,
1029
1065
stream : Optional [Literal [False ]] | Literal [True ] | NotGiven = NOT_GIVEN ,
1066
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
1030
1067
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
1031
1068
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1032
1069
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1048,6 +1085,7 @@ async def create(
1048
1085
"metadata" : metadata ,
1049
1086
"model" : model ,
1050
1087
"stream" : stream ,
1088
+ "temperature" : temperature ,
1051
1089
"tools" : tools ,
1052
1090
},
1053
1091
run_create_params .RunCreateParams ,
@@ -1254,6 +1292,7 @@ def create_and_stream(
1254
1292
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1255
1293
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1256
1294
model : Optional [str ] | NotGiven = NOT_GIVEN ,
1295
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
1257
1296
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
1258
1297
thread_id : str ,
1259
1298
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1275,6 +1314,7 @@ def create_and_stream(
1275
1314
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1276
1315
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1277
1316
model : Optional [str ] | NotGiven = NOT_GIVEN ,
1317
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
1278
1318
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
1279
1319
thread_id : str ,
1280
1320
event_handler : AsyncAssistantEventHandlerT ,
@@ -1296,6 +1336,7 @@ def create_and_stream(
1296
1336
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
1297
1337
metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
1298
1338
model : Optional [str ] | NotGiven = NOT_GIVEN ,
1339
+ temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
1299
1340
tools : Optional [Iterable [AssistantToolParam ]] | NotGiven = NOT_GIVEN ,
1300
1341
thread_id : str ,
1301
1342
event_handler : AsyncAssistantEventHandlerT | None = None ,
@@ -1328,6 +1369,7 @@ def create_and_stream(
1328
1369
"instructions" : instructions ,
1329
1370
"metadata" : metadata ,
1330
1371
"model" : model ,
1372
+ "temperature" : temperature ,
1331
1373
"stream" : True ,
1332
1374
"tools" : tools ,
1333
1375
},
0 commit comments