@@ -164,10 +164,14 @@ export namespace ThreadCreateParams {
164
164
content : string ;
165
165
166
166
/**
167
- * The role of the entity that is creating the message. Currently only `user` is
168
- * supported.
167
+ * The role of the entity that is creating the message. Allowed values include:
168
+ *
169
+ * - `user`: Indicates the message is sent by an actual user and should be used in
170
+ * most cases to represent user-generated messages.
171
+ * - `assistant`: Indicates the message is generated by the assistant. Use this
172
+ * value to insert messages from the assistant into the conversation.
169
173
*/
170
- role : 'user' ;
174
+ role : 'user' | 'assistant' ;
171
175
172
176
/**
173
177
* A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that
@@ -238,6 +242,13 @@ export interface ThreadCreateAndRunParamsBase {
238
242
*/
239
243
stream ?: boolean | null ;
240
244
245
+ /**
246
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
247
+ * make the output more random, while lower values like 0.2 will make it more
248
+ * focused and deterministic.
249
+ */
250
+ temperature ?: number | null ;
251
+
241
252
/**
242
253
* If no thread is provided, an empty thread will be created.
243
254
*/
@@ -280,10 +291,14 @@ export namespace ThreadCreateAndRunParams {
280
291
content : string ;
281
292
282
293
/**
283
- * The role of the entity that is creating the message. Currently only `user` is
284
- * supported.
294
+ * The role of the entity that is creating the message. Allowed values include:
295
+ *
296
+ * - `user`: Indicates the message is sent by an actual user and should be used in
297
+ * most cases to represent user-generated messages.
298
+ * - `assistant`: Indicates the message is generated by the assistant. Use this
299
+ * value to insert messages from the assistant into the conversation.
285
300
*/
286
- role : 'user' ;
301
+ role : 'user' | 'assistant' ;
287
302
288
303
/**
289
304
* A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that
@@ -355,6 +370,13 @@ export interface ThreadCreateAndRunStreamParams {
355
370
*/
356
371
model ?: string | null ;
357
372
373
+ /**
374
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
375
+ * make the output more random, while lower values like 0.2 will make it more
376
+ * focused and deterministic.
377
+ */
378
+ temperature ?: number | null ;
379
+
358
380
/**
359
381
* If no thread is provided, an empty thread will be created.
360
382
*/
@@ -397,10 +419,14 @@ export namespace ThreadCreateAndRunStreamParams {
397
419
content : string ;
398
420
399
421
/**
400
- * The role of the entity that is creating the message. Currently only `user` is
401
- * supported.
422
+ * The role of the entity that is creating the message. Allowed values include:
423
+ *
424
+ * - `user`: Indicates the message is sent by an actual user and should be used in
425
+ * most cases to represent user-generated messages.
426
+ * - `assistant`: Indicates the message is generated by the assistant. Use this
427
+ * value to insert messages from the assistant into the conversation.
402
428
*/
403
- role : 'user' ;
429
+ role : 'user' | 'assistant' ;
404
430
405
431
/**
406
432
* A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that
0 commit comments