@@ -31,8 +31,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
31
31
thread = client .beta .threads .create (
32
32
messages = [
33
33
{
34
- "role" : "user" ,
35
34
"content" : "string" ,
35
+ "role" : "user" ,
36
36
"attachments" : [
37
37
{
38
38
"file_id" : "string" ,
@@ -62,8 +62,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
62
62
"metadata" : {},
63
63
},
64
64
{
65
- "role" : "user" ,
66
65
"content" : "string" ,
66
+ "role" : "user" ,
67
67
"attachments" : [
68
68
{
69
69
"file_id" : "string" ,
@@ -93,8 +93,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
93
93
"metadata" : {},
94
94
},
95
95
{
96
- "role" : "user" ,
97
96
"content" : "string" ,
97
+ "role" : "user" ,
98
98
"attachments" : [
99
99
{
100
100
"file_id" : "string" ,
@@ -131,8 +131,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
131
131
"vector_store_ids" : ["string" ],
132
132
"vector_stores" : [
133
133
{
134
- "file_ids" : ["string" , "string" , "string" ],
135
134
"chunking_strategy" : {"type" : "auto" },
135
+ "file_ids" : ["string" , "string" , "string" ],
136
136
"metadata" : {},
137
137
}
138
138
],
@@ -310,8 +310,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
310
310
thread = {
311
311
"messages" : [
312
312
{
313
- "role" : "user" ,
314
313
"content" : "string" ,
314
+ "role" : "user" ,
315
315
"attachments" : [
316
316
{
317
317
"file_id" : "string" ,
@@ -341,8 +341,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
341
341
"metadata" : {},
342
342
},
343
343
{
344
- "role" : "user" ,
345
344
"content" : "string" ,
345
+ "role" : "user" ,
346
346
"attachments" : [
347
347
{
348
348
"file_id" : "string" ,
@@ -372,8 +372,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
372
372
"metadata" : {},
373
373
},
374
374
{
375
- "role" : "user" ,
376
375
"content" : "string" ,
376
+ "role" : "user" ,
377
377
"attachments" : [
378
378
{
379
379
"file_id" : "string" ,
@@ -403,20 +403,20 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
403
403
"metadata" : {},
404
404
},
405
405
],
406
+ "metadata" : {},
406
407
"tool_resources" : {
407
408
"code_interpreter" : {"file_ids" : ["string" , "string" , "string" ]},
408
409
"file_search" : {
409
410
"vector_store_ids" : ["string" ],
410
411
"vector_stores" : [
411
412
{
412
- "file_ids" : ["string" , "string" , "string" ],
413
413
"chunking_strategy" : {"type" : "auto" },
414
+ "file_ids" : ["string" , "string" , "string" ],
414
415
"metadata" : {},
415
416
}
416
417
],
417
418
},
418
419
},
419
- "metadata" : {},
420
420
},
421
421
tool_choice = "none" ,
422
422
tool_resources = {
@@ -480,8 +480,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
480
480
thread = {
481
481
"messages" : [
482
482
{
483
- "role" : "user" ,
484
483
"content" : "string" ,
484
+ "role" : "user" ,
485
485
"attachments" : [
486
486
{
487
487
"file_id" : "string" ,
@@ -511,8 +511,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
511
511
"metadata" : {},
512
512
},
513
513
{
514
- "role" : "user" ,
515
514
"content" : "string" ,
515
+ "role" : "user" ,
516
516
"attachments" : [
517
517
{
518
518
"file_id" : "string" ,
@@ -542,8 +542,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
542
542
"metadata" : {},
543
543
},
544
544
{
545
- "role" : "user" ,
546
545
"content" : "string" ,
546
+ "role" : "user" ,
547
547
"attachments" : [
548
548
{
549
549
"file_id" : "string" ,
@@ -573,20 +573,20 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
573
573
"metadata" : {},
574
574
},
575
575
],
576
+ "metadata" : {},
576
577
"tool_resources" : {
577
578
"code_interpreter" : {"file_ids" : ["string" , "string" , "string" ]},
578
579
"file_search" : {
579
580
"vector_store_ids" : ["string" ],
580
581
"vector_stores" : [
581
582
{
582
- "file_ids" : ["string" , "string" , "string" ],
583
583
"chunking_strategy" : {"type" : "auto" },
584
+ "file_ids" : ["string" , "string" , "string" ],
584
585
"metadata" : {},
585
586
}
586
587
],
587
588
},
588
589
},
589
- "metadata" : {},
590
590
},
591
591
tool_choice = "none" ,
592
592
tool_resources = {
@@ -641,8 +641,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
641
641
thread = await async_client .beta .threads .create (
642
642
messages = [
643
643
{
644
- "role" : "user" ,
645
644
"content" : "string" ,
645
+ "role" : "user" ,
646
646
"attachments" : [
647
647
{
648
648
"file_id" : "string" ,
@@ -672,8 +672,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
672
672
"metadata" : {},
673
673
},
674
674
{
675
- "role" : "user" ,
676
675
"content" : "string" ,
676
+ "role" : "user" ,
677
677
"attachments" : [
678
678
{
679
679
"file_id" : "string" ,
@@ -703,8 +703,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
703
703
"metadata" : {},
704
704
},
705
705
{
706
- "role" : "user" ,
707
706
"content" : "string" ,
707
+ "role" : "user" ,
708
708
"attachments" : [
709
709
{
710
710
"file_id" : "string" ,
@@ -741,8 +741,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
741
741
"vector_store_ids" : ["string" ],
742
742
"vector_stores" : [
743
743
{
744
- "file_ids" : ["string" , "string" , "string" ],
745
744
"chunking_strategy" : {"type" : "auto" },
745
+ "file_ids" : ["string" , "string" , "string" ],
746
746
"metadata" : {},
747
747
}
748
748
],
@@ -920,8 +920,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
920
920
thread = {
921
921
"messages" : [
922
922
{
923
- "role" : "user" ,
924
923
"content" : "string" ,
924
+ "role" : "user" ,
925
925
"attachments" : [
926
926
{
927
927
"file_id" : "string" ,
@@ -951,8 +951,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
951
951
"metadata" : {},
952
952
},
953
953
{
954
- "role" : "user" ,
955
954
"content" : "string" ,
955
+ "role" : "user" ,
956
956
"attachments" : [
957
957
{
958
958
"file_id" : "string" ,
@@ -982,8 +982,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
982
982
"metadata" : {},
983
983
},
984
984
{
985
- "role" : "user" ,
986
985
"content" : "string" ,
986
+ "role" : "user" ,
987
987
"attachments" : [
988
988
{
989
989
"file_id" : "string" ,
@@ -1013,20 +1013,20 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
1013
1013
"metadata" : {},
1014
1014
},
1015
1015
],
1016
+ "metadata" : {},
1016
1017
"tool_resources" : {
1017
1018
"code_interpreter" : {"file_ids" : ["string" , "string" , "string" ]},
1018
1019
"file_search" : {
1019
1020
"vector_store_ids" : ["string" ],
1020
1021
"vector_stores" : [
1021
1022
{
1022
- "file_ids" : ["string" , "string" , "string" ],
1023
1023
"chunking_strategy" : {"type" : "auto" },
1024
+ "file_ids" : ["string" , "string" , "string" ],
1024
1025
"metadata" : {},
1025
1026
}
1026
1027
],
1027
1028
},
1028
1029
},
1029
- "metadata" : {},
1030
1030
},
1031
1031
tool_choice = "none" ,
1032
1032
tool_resources = {
@@ -1090,8 +1090,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
1090
1090
thread = {
1091
1091
"messages" : [
1092
1092
{
1093
- "role" : "user" ,
1094
1093
"content" : "string" ,
1094
+ "role" : "user" ,
1095
1095
"attachments" : [
1096
1096
{
1097
1097
"file_id" : "string" ,
@@ -1121,8 +1121,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
1121
1121
"metadata" : {},
1122
1122
},
1123
1123
{
1124
- "role" : "user" ,
1125
1124
"content" : "string" ,
1125
+ "role" : "user" ,
1126
1126
"attachments" : [
1127
1127
{
1128
1128
"file_id" : "string" ,
@@ -1152,8 +1152,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
1152
1152
"metadata" : {},
1153
1153
},
1154
1154
{
1155
- "role" : "user" ,
1156
1155
"content" : "string" ,
1156
+ "role" : "user" ,
1157
1157
"attachments" : [
1158
1158
{
1159
1159
"file_id" : "string" ,
@@ -1183,20 +1183,20 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
1183
1183
"metadata" : {},
1184
1184
},
1185
1185
],
1186
+ "metadata" : {},
1186
1187
"tool_resources" : {
1187
1188
"code_interpreter" : {"file_ids" : ["string" , "string" , "string" ]},
1188
1189
"file_search" : {
1189
1190
"vector_store_ids" : ["string" ],
1190
1191
"vector_stores" : [
1191
1192
{
1192
- "file_ids" : ["string" , "string" , "string" ],
1193
1193
"chunking_strategy" : {"type" : "auto" },
1194
+ "file_ids" : ["string" , "string" , "string" ],
1194
1195
"metadata" : {},
1195
1196
}
1196
1197
],
1197
1198
},
1198
1199
},
1199
- "metadata" : {},
1200
1200
},
1201
1201
tool_choice = "none" ,
1202
1202
tool_resources = {
0 commit comments