@@ -587,7 +587,7 @@ def create(
587
587
"top_p" : top_p ,
588
588
"truncation_strategy" : truncation_strategy ,
589
589
},
590
- run_create_params .RunCreateParams ,
590
+ run_create_params .RunCreateParamsStreaming if stream else run_create_params . RunCreateParamsNonStreaming ,
591
591
),
592
592
options = make_request_options (
593
593
extra_headers = extra_headers ,
@@ -1324,7 +1324,9 @@ def submit_tool_outputs(
1324
1324
"tool_outputs" : tool_outputs ,
1325
1325
"stream" : stream ,
1326
1326
},
1327
- run_submit_tool_outputs_params .RunSubmitToolOutputsParams ,
1327
+ run_submit_tool_outputs_params .RunSubmitToolOutputsParamsStreaming
1328
+ if stream
1329
+ else run_submit_tool_outputs_params .RunSubmitToolOutputsParamsNonStreaming ,
1328
1330
),
1329
1331
options = make_request_options (
1330
1332
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
@@ -1996,7 +1998,7 @@ async def create(
1996
1998
"top_p" : top_p ,
1997
1999
"truncation_strategy" : truncation_strategy ,
1998
2000
},
1999
- run_create_params .RunCreateParams ,
2001
+ run_create_params .RunCreateParamsStreaming if stream else run_create_params . RunCreateParamsNonStreaming ,
2000
2002
),
2001
2003
options = make_request_options (
2002
2004
extra_headers = extra_headers ,
@@ -2732,7 +2734,9 @@ async def submit_tool_outputs(
2732
2734
"tool_outputs" : tool_outputs ,
2733
2735
"stream" : stream ,
2734
2736
},
2735
- run_submit_tool_outputs_params .RunSubmitToolOutputsParams ,
2737
+ run_submit_tool_outputs_params .RunSubmitToolOutputsParamsStreaming
2738
+ if stream
2739
+ else run_submit_tool_outputs_params .RunSubmitToolOutputsParamsNonStreaming ,
2736
2740
),
2737
2741
options = make_request_options (
2738
2742
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
0 commit comments