@@ -164,7 +164,8 @@ def run(
164164 self ,
165165 ref : str ,
166166 input : Optional [Dict [str , Any ]] = None ,
167- use_file_output : Optional [bool ] = None ,
167+ * ,
168+ use_file_output : Optional [bool ] = True ,
168169 ** params : Unpack ["Predictions.CreatePredictionParams" ],
169170 ) -> Union [Any , Iterator [Any ]]: # noqa: ANN401
170171 """
@@ -177,7 +178,8 @@ async def async_run(
177178 self ,
178179 ref : str ,
179180 input : Optional [Dict [str , Any ]] = None ,
180- use_file_output : Optional [bool ] = None ,
181+ * ,
182+ use_file_output : Optional [bool ] = True ,
181183 ** params : Unpack ["Predictions.CreatePredictionParams" ],
182184 ) -> Union [Any , AsyncIterator [Any ]]: # noqa: ANN401
183185 """
@@ -191,28 +193,30 @@ async def async_run(
191193 def stream (
192194 self ,
193195 ref : str ,
196+ * ,
194197 input : Optional [Dict [str , Any ]] = None ,
195- use_file_output : Optional [bool ] = None ,
198+ use_file_output : Optional [bool ] = True ,
196199 ** params : Unpack ["Predictions.CreatePredictionParams" ],
197200 ) -> Iterator ["ServerSentEvent" ]:
198201 """
199202 Stream a model's output.
200203 """
201204
202- return stream (self , ref , input , use_file_output , ** params )
205+ return stream (self , ref , input , use_file_output = use_file_output , ** params )
203206
204207 async def async_stream (
205208 self ,
206209 ref : str ,
207210 input : Optional [Dict [str , Any ]] = None ,
208- use_file_output : Optional [bool ] = None ,
211+ * ,
212+ use_file_output : Optional [bool ] = True ,
209213 ** params : Unpack ["Predictions.CreatePredictionParams" ],
210214 ) -> AsyncIterator ["ServerSentEvent" ]:
211215 """
212216 Stream a model's output asynchronously.
213217 """
214218
215- return async_stream (self , ref , input , use_file_output , ** params )
219+ return async_stream (self , ref , input , use_file_output = use_file_output , ** params )
216220
217221
218222# Adapted from https://github.com/encode/httpx/issues/108#issuecomment-1132753155
0 commit comments