@@ -132,7 +132,7 @@ def create(thread_id, params)
132
132
query_params = [ :include ]
133
133
@client . request (
134
134
method : :post ,
135
- path : [ "threads/%0s /runs" , thread_id ] ,
135
+ path : [ "threads/%1$s /runs" , thread_id ] ,
136
136
query : parsed . slice ( *query_params ) ,
137
137
body : parsed . except ( *query_params ) ,
138
138
model : OpenAI ::Models ::Beta ::Threads ::Run ,
@@ -265,7 +265,7 @@ def create_streaming(thread_id, params)
265
265
query_params = [ :include ]
266
266
@client . request (
267
267
method : :post ,
268
- path : [ "threads/%0s /runs" , thread_id ] ,
268
+ path : [ "threads/%1$s /runs" , thread_id ] ,
269
269
query : parsed . slice ( *query_params ) ,
270
270
headers : { "accept" => "text/event-stream" } ,
271
271
body : parsed . except ( *query_params ) ,
@@ -295,7 +295,7 @@ def retrieve(run_id, params)
295
295
end
296
296
@client . request (
297
297
method : :get ,
298
- path : [ "threads/%0s /runs/%1s " , thread_id , run_id ] ,
298
+ path : [ "threads/%1$s /runs/%2$s " , thread_id , run_id ] ,
299
299
model : OpenAI ::Models ::Beta ::Threads ::Run ,
300
300
options : options
301
301
)
@@ -328,7 +328,7 @@ def update(run_id, params)
328
328
end
329
329
@client . request (
330
330
method : :post ,
331
- path : [ "threads/%0s /runs/%1s " , thread_id , run_id ] ,
331
+ path : [ "threads/%1$s /runs/%2$s " , thread_id , run_id ] ,
332
332
body : parsed ,
333
333
model : OpenAI ::Models ::Beta ::Threads ::Run ,
334
334
options : options
@@ -364,7 +364,7 @@ def list(thread_id, params = {})
364
364
parsed , options = OpenAI ::Models ::Beta ::Threads ::RunListParams . dump_request ( params )
365
365
@client . request (
366
366
method : :get ,
367
- path : [ "threads/%0s /runs" , thread_id ] ,
367
+ path : [ "threads/%1$s /runs" , thread_id ] ,
368
368
query : parsed ,
369
369
page : OpenAI ::CursorPage ,
370
370
model : OpenAI ::Models ::Beta ::Threads ::Run ,
@@ -391,7 +391,7 @@ def cancel(run_id, params)
391
391
end
392
392
@client . request (
393
393
method : :post ,
394
- path : [ "threads/%0s /runs/%1s /cancel" , thread_id , run_id ] ,
394
+ path : [ "threads/%1$s /runs/%2$s /cancel" , thread_id , run_id ] ,
395
395
model : OpenAI ::Models ::Beta ::Threads ::Run ,
396
396
options : options
397
397
)
@@ -427,7 +427,7 @@ def submit_tool_outputs(run_id, params)
427
427
end
428
428
@client . request (
429
429
method : :post ,
430
- path : [ "threads/%0s /runs/%1s /submit_tool_outputs" , thread_id , run_id ] ,
430
+ path : [ "threads/%1$s /runs/%2$s /submit_tool_outputs" , thread_id , run_id ] ,
431
431
body : parsed ,
432
432
model : OpenAI ::Models ::Beta ::Threads ::Run ,
433
433
options : options
@@ -465,7 +465,7 @@ def submit_tool_outputs_streaming(run_id, params)
465
465
end
466
466
@client . request (
467
467
method : :post ,
468
- path : [ "threads/%0s /runs/%1s /submit_tool_outputs" , thread_id , run_id ] ,
468
+ path : [ "threads/%1$s /runs/%2$s /submit_tool_outputs" , thread_id , run_id ] ,
469
469
headers : { "accept" => "text/event-stream" } ,
470
470
body : parsed ,
471
471
stream : OpenAI ::Stream ,
0 commit comments