@@ -132,7 +132,7 @@ def create(thread_id, params)
132132 query_params = [ :include ]
133133 @client . request (
134134 method : :post ,
135- path : [ "threads/%0s /runs" , thread_id ] ,
135+ path : [ "threads/%1$s /runs" , thread_id ] ,
136136 query : parsed . slice ( *query_params ) ,
137137 body : parsed . except ( *query_params ) ,
138138 model : OpenAI ::Models ::Beta ::Threads ::Run ,
@@ -265,7 +265,7 @@ def create_streaming(thread_id, params)
265265 query_params = [ :include ]
266266 @client . request (
267267 method : :post ,
268- path : [ "threads/%0s /runs" , thread_id ] ,
268+ path : [ "threads/%1$s /runs" , thread_id ] ,
269269 query : parsed . slice ( *query_params ) ,
270270 headers : { "accept" => "text/event-stream" } ,
271271 body : parsed . except ( *query_params ) ,
@@ -295,7 +295,7 @@ def retrieve(run_id, params)
295295 end
296296 @client . request (
297297 method : :get ,
298- path : [ "threads/%0s /runs/%1s " , thread_id , run_id ] ,
298+ path : [ "threads/%1$s /runs/%2$s " , thread_id , run_id ] ,
299299 model : OpenAI ::Models ::Beta ::Threads ::Run ,
300300 options : options
301301 )
@@ -328,7 +328,7 @@ def update(run_id, params)
328328 end
329329 @client . request (
330330 method : :post ,
331- path : [ "threads/%0s /runs/%1s " , thread_id , run_id ] ,
331+ path : [ "threads/%1$s /runs/%2$s " , thread_id , run_id ] ,
332332 body : parsed ,
333333 model : OpenAI ::Models ::Beta ::Threads ::Run ,
334334 options : options
@@ -364,7 +364,7 @@ def list(thread_id, params = {})
364364 parsed , options = OpenAI ::Models ::Beta ::Threads ::RunListParams . dump_request ( params )
365365 @client . request (
366366 method : :get ,
367- path : [ "threads/%0s /runs" , thread_id ] ,
367+ path : [ "threads/%1$s /runs" , thread_id ] ,
368368 query : parsed ,
369369 page : OpenAI ::CursorPage ,
370370 model : OpenAI ::Models ::Beta ::Threads ::Run ,
@@ -391,7 +391,7 @@ def cancel(run_id, params)
391391 end
392392 @client . request (
393393 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 ] ,
395395 model : OpenAI ::Models ::Beta ::Threads ::Run ,
396396 options : options
397397 )
@@ -427,7 +427,7 @@ def submit_tool_outputs(run_id, params)
427427 end
428428 @client . request (
429429 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 ] ,
431431 body : parsed ,
432432 model : OpenAI ::Models ::Beta ::Threads ::Run ,
433433 options : options
@@ -465,7 +465,7 @@ def submit_tool_outputs_streaming(run_id, params)
465465 end
466466 @client . request (
467467 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 ] ,
469469 headers : { "accept" => "text/event-stream" } ,
470470 body : parsed ,
471471 stream : OpenAI ::Stream ,
0 commit comments