@@ -274,7 +274,7 @@ def translate(self, text: Union[str, Iterable[str], Iterable[TextBlock]], *,
274274 instructions : List [str ] = None , content_type : str = None ,
275275 multiline : bool = True , timeout_ms : int = None , priority : TranslatePriority = None ,
276276 use_cache : Union [bool , UseCache ] = None , cache_ttl_s : int = None ,
277- no_trace : bool = False ) -> TextResult :
277+ no_trace : bool = False , verbose : bool = False ) -> TextResult :
278278 if isinstance (text , str ):
279279 q = text
280280 elif hasattr (text , '__iter__' ):
@@ -296,7 +296,8 @@ def translate(self, text: Union[str, Iterable[str], Iterable[TextBlock]], *,
296296 'source' : source , 'target' : target , 'source_hint' : source_hint , 'content_type' : content_type ,
297297 'multiline' : multiline , 'adapt_to' : adapt_to , 'instructions' : instructions , 'timeout' : timeout_ms , 'q' : q ,
298298 'priority' : priority .value if priority is not None else None ,
299- 'use_cache' : use_cache .value if use_cache is not None else None , 'cache_ttl' : cache_ttl_s
299+ 'use_cache' : use_cache .value if use_cache is not None else None , 'cache_ttl' : cache_ttl_s ,
300+ 'verbose' : verbose
300301 }
301302
302303 headers = None
0 commit comments