diff --git a/src/gooey/client.py b/src/gooey/client.py index 9f131b1..61e948a 100644 --- a/src/gooey/client.py +++ b/src/gooey/client.py @@ -139,11 +139,15 @@ def __init__( self._client_wrapper = SyncClientWrapper( base_url=_get_base_url(base_url=base_url, environment=environment), api_key=api_key, - httpx_client=httpx_client - if httpx_client is not None - else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects) - if follow_redirects is not None - else httpx.Client(timeout=_defaulted_timeout), + httpx_client=( + httpx_client + if httpx_client is not None + else ( + httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects) + if follow_redirects is not None + else httpx.Client(timeout=_defaulted_timeout) + ) + ), timeout=_defaulted_timeout, ) self.copilot = CopilotClient(client_wrapper=self._client_wrapper) @@ -304,34 +308,34 @@ def qr_code( *, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - qr_code_data: typing.Optional[str] = None, - qr_code_input_image: typing.Optional[core.File] = None, - qr_code_vcard: typing.Optional[Vcard] = None, - qr_code_file: typing.Optional[core.File] = None, - use_url_shortener: typing.Optional[bool] = None, - negative_prompt: typing.Optional[str] = None, - image_prompt: typing.Optional[str] = None, - image_prompt_controlnet_models: typing.Optional[typing.List[ControlNetModels]] = None, - image_prompt_strength: typing.Optional[float] = None, - image_prompt_scale: typing.Optional[float] = None, - image_prompt_pos_x: typing.Optional[float] = None, - image_prompt_pos_y: typing.Optional[float] = None, - selected_model: typing.Optional[TextToImageModels] = None, - selected_controlnet_model: typing.Optional[typing.List[ControlNetModels]] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - controlnet_conditioning_scale: typing.Optional[typing.List[float]] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - scheduler: typing.Optional[Schedulers] = None, - seed: typing.Optional[int] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + qr_code_data: typing.Optional[str] = OMIT, + qr_code_input_image: typing.Optional[core.File] = OMIT, + qr_code_vcard: typing.Optional[Vcard] = OMIT, + qr_code_file: typing.Optional[core.File] = OMIT, + use_url_shortener: typing.Optional[bool] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + image_prompt: typing.Optional[str] = OMIT, + image_prompt_controlnet_models: typing.Optional[typing.List[ControlNetModels]] = OMIT, + image_prompt_strength: typing.Optional[float] = OMIT, + image_prompt_scale: typing.Optional[float] = OMIT, + image_prompt_pos_x: typing.Optional[float] = OMIT, + image_prompt_pos_y: typing.Optional[float] = OMIT, + selected_model: typing.Optional[TextToImageModels] = OMIT, + selected_controlnet_model: typing.Optional[typing.List[ControlNetModels]] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + controlnet_conditioning_scale: typing.Optional[typing.List[float]] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + scheduler: typing.Optional[Schedulers] = OMIT, + seed: typing.Optional[int] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> QrCodeGeneratorPageOutput: """ @@ -1199,10 +1203,10 @@ def bulk_run( input_columns: typing.Dict[str, str], output_columns: typing.Dict[str, str], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - eval_urls: typing.Optional[typing.List[str]] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + eval_urls: typing.Optional[typing.List[str]] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> BulkRunnerPageOutput: """ @@ -1482,21 +1486,21 @@ def synthesize_data( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - sheet_url: typing.Optional[core.File] = None, - selected_asr_model: typing.Optional[AsrModels] = None, - google_translate_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - task_instructions: typing.Optional[str] = None, - selected_model: typing.Optional[LargeLanguageModels] = None, - avoid_repetition: typing.Optional[bool] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[float] = None, - max_tokens: typing.Optional[int] = None, - sampling_temperature: typing.Optional[float] = None, - response_format_type: typing.Optional[ResponseFormatType] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + sheet_url: typing.Optional[core.File] = OMIT, + selected_asr_model: typing.Optional[AsrModels] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + task_instructions: typing.Optional[str] = OMIT, + selected_model: typing.Optional[LargeLanguageModels] = OMIT, + avoid_repetition: typing.Optional[bool] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[float] = OMIT, + max_tokens: typing.Optional[int] = OMIT, + sampling_temperature: typing.Optional[float] = OMIT, + response_format_type: typing.Optional[ResponseFormatType] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> DocExtractPageOutput: """ @@ -2083,21 +2087,21 @@ def doc_summary( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - task_instructions: typing.Optional[str] = None, - merge_instructions: typing.Optional[str] = None, - selected_model: typing.Optional[LargeLanguageModels] = None, - chain_type: typing.Optional[CombineDocumentsChains] = None, - selected_asr_model: typing.Optional[AsrModels] = None, - google_translate_target: typing.Optional[str] = None, - avoid_repetition: typing.Optional[bool] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[float] = None, - max_tokens: typing.Optional[int] = None, - sampling_temperature: typing.Optional[float] = None, - response_format_type: typing.Optional[ResponseFormatType] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + task_instructions: typing.Optional[str] = OMIT, + merge_instructions: typing.Optional[str] = OMIT, + selected_model: typing.Optional[LargeLanguageModels] = OMIT, + chain_type: typing.Optional[CombineDocumentsChains] = OMIT, + selected_asr_model: typing.Optional[AsrModels] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + avoid_repetition: typing.Optional[bool] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[float] = OMIT, + max_tokens: typing.Optional[int] = OMIT, + sampling_temperature: typing.Optional[float] = OMIT, + response_format_type: typing.Optional[ResponseFormatType] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> DocSummaryPageOutput: """ @@ -2330,17 +2334,17 @@ def lipsync( self, *, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - input_face: typing.Optional[core.File] = None, - face_padding_top: typing.Optional[int] = None, - face_padding_bottom: typing.Optional[int] = None, - face_padding_left: typing.Optional[int] = None, - face_padding_right: typing.Optional[int] = None, - sadtalker_settings: typing.Optional[SadTalkerSettings] = None, - selected_model: typing.Optional[LipsyncModels] = None, - input_audio: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + input_face: typing.Optional[core.File] = OMIT, + face_padding_top: typing.Optional[int] = OMIT, + face_padding_bottom: typing.Optional[int] = OMIT, + face_padding_left: typing.Optional[int] = OMIT, + face_padding_right: typing.Optional[int] = OMIT, + sadtalker_settings: typing.Optional[SadTalkerSettings] = OMIT, + selected_model: typing.Optional[LipsyncModels] = OMIT, + input_audio: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LipsyncPageOutput: """ @@ -2463,34 +2467,34 @@ def lipsync_tts( *, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - tts_provider: typing.Optional[TextToSpeechProviders] = None, - uberduck_voice_name: typing.Optional[str] = None, - uberduck_speaking_rate: typing.Optional[float] = None, - google_voice_name: typing.Optional[str] = None, - google_speaking_rate: typing.Optional[float] = None, - google_pitch: typing.Optional[float] = None, - bark_history_prompt: typing.Optional[str] = None, - elevenlabs_voice_name: typing.Optional[str] = None, - elevenlabs_api_key: typing.Optional[str] = None, - elevenlabs_voice_id: typing.Optional[str] = None, - elevenlabs_model: typing.Optional[str] = None, - elevenlabs_stability: typing.Optional[float] = None, - elevenlabs_similarity_boost: typing.Optional[float] = None, - elevenlabs_style: typing.Optional[float] = None, - elevenlabs_speaker_boost: typing.Optional[bool] = None, - azure_voice_name: typing.Optional[str] = None, - openai_voice_name: typing.Optional[OpenAiTtsVoices] = None, - openai_tts_model: typing.Optional[OpenAiTtsModels] = None, - input_face: typing.Optional[core.File] = None, - face_padding_top: typing.Optional[int] = None, - face_padding_bottom: typing.Optional[int] = None, - face_padding_left: typing.Optional[int] = None, - face_padding_right: typing.Optional[int] = None, - sadtalker_settings: typing.Optional[SadTalkerSettings] = None, - selected_model: typing.Optional[LipsyncModels] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + tts_provider: typing.Optional[TextToSpeechProviders] = OMIT, + uberduck_voice_name: typing.Optional[str] = OMIT, + uberduck_speaking_rate: typing.Optional[float] = OMIT, + google_voice_name: typing.Optional[str] = OMIT, + google_speaking_rate: typing.Optional[float] = OMIT, + google_pitch: typing.Optional[float] = OMIT, + bark_history_prompt: typing.Optional[str] = OMIT, + elevenlabs_voice_name: typing.Optional[str] = OMIT, + elevenlabs_api_key: typing.Optional[str] = OMIT, + elevenlabs_voice_id: typing.Optional[str] = OMIT, + elevenlabs_model: typing.Optional[str] = OMIT, + elevenlabs_stability: typing.Optional[float] = OMIT, + elevenlabs_similarity_boost: typing.Optional[float] = OMIT, + elevenlabs_style: typing.Optional[float] = OMIT, + elevenlabs_speaker_boost: typing.Optional[bool] = OMIT, + azure_voice_name: typing.Optional[str] = OMIT, + openai_voice_name: typing.Optional[OpenAiTtsVoices] = OMIT, + openai_tts_model: typing.Optional[OpenAiTtsModels] = OMIT, + input_face: typing.Optional[core.File] = OMIT, + face_padding_top: typing.Optional[int] = OMIT, + face_padding_bottom: typing.Optional[int] = OMIT, + face_padding_left: typing.Optional[int] = OMIT, + face_padding_right: typing.Optional[int] = OMIT, + sadtalker_settings: typing.Optional[SadTalkerSettings] = OMIT, + selected_model: typing.Optional[LipsyncModels] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LipsyncTtsPageOutput: """ @@ -2844,17 +2848,17 @@ def speech_recognition( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - selected_model: typing.Optional[AsrModels] = None, - language: typing.Optional[str] = None, - translation_model: typing.Optional[TranslationModels] = None, - output_format: typing.Optional[AsrOutputFormat] = None, - google_translate_target: typing.Optional[str] = None, - translation_source: typing.Optional[str] = None, - translation_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + selected_model: typing.Optional[AsrModels] = OMIT, + language: typing.Optional[str] = OMIT, + translation_model: typing.Optional[TranslationModels] = OMIT, + output_format: typing.Optional[AsrOutputFormat] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + translation_source: typing.Optional[str] = OMIT, + translation_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsrPageOutput: """ @@ -3114,14 +3118,14 @@ def translate( self, *, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - texts: typing.Optional[typing.List[str]] = None, - selected_model: typing.Optional[TranslationModels] = None, - translation_source: typing.Optional[str] = None, - translation_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + texts: typing.Optional[typing.List[str]] = OMIT, + selected_model: typing.Optional[TranslationModels] = OMIT, + translation_source: typing.Optional[str] = OMIT, + translation_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> TranslationPageOutput: """ @@ -3234,22 +3238,22 @@ def remix_image( *, input_image: core.File, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - text_prompt: typing.Optional[str] = None, - selected_model: typing.Optional[ImageToImageModels] = None, - selected_controlnet_model: typing.Optional[SelectedControlNetModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - prompt_strength: typing.Optional[float] = None, - controlnet_conditioning_scale: typing.Optional[typing.List[float]] = None, - seed: typing.Optional[int] = None, - image_guidance_scale: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + text_prompt: typing.Optional[str] = OMIT, + selected_model: typing.Optional[ImageToImageModels] = OMIT, + selected_controlnet_model: typing.Optional[SelectedControlNetModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + prompt_strength: typing.Optional[float] = OMIT, + controlnet_conditioning_scale: typing.Optional[typing.List[float]] = OMIT, + seed: typing.Optional[int] = OMIT, + image_guidance_scale: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Img2ImgPageOutput: """ @@ -3548,22 +3552,22 @@ def product_image( input_image: core.File, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - mask_threshold: typing.Optional[float] = None, - selected_model: typing.Optional[InpaintingModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - sd2upscaling: typing.Optional[bool] = None, - seed: typing.Optional[int] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + mask_threshold: typing.Optional[float] = OMIT, + selected_model: typing.Optional[InpaintingModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + sd2upscaling: typing.Optional[bool] = OMIT, + seed: typing.Optional[int] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> ObjectInpaintingPageOutput: """ @@ -3709,21 +3713,21 @@ def portrait( input_image: core.File, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - face_scale: typing.Optional[float] = None, - face_pos_x: typing.Optional[float] = None, - face_pos_y: typing.Optional[float] = None, - selected_model: typing.Optional[InpaintingModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - upscale_factor: typing.Optional[float] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - seed: typing.Optional[int] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + face_scale: typing.Optional[float] = OMIT, + face_pos_x: typing.Optional[float] = OMIT, + face_pos_y: typing.Optional[float] = OMIT, + selected_model: typing.Optional[InpaintingModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + upscale_factor: typing.Optional[float] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + seed: typing.Optional[int] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FaceInpaintingPageOutput: """ @@ -4208,16 +4212,16 @@ def remove_background( *, input_image: core.File, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - selected_model: typing.Optional[ImageSegmentationModels] = None, - mask_threshold: typing.Optional[float] = None, - rect_persepective_transform: typing.Optional[bool] = None, - reflection_opacity: typing.Optional[float] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + selected_model: typing.Optional[ImageSegmentationModels] = OMIT, + mask_threshold: typing.Optional[float] = OMIT, + rect_persepective_transform: typing.Optional[bool] = OMIT, + reflection_opacity: typing.Optional[float] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> ImageSegmentationPageOutput: """ @@ -4339,13 +4343,13 @@ def upscale( *, scale: int, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - input_image: typing.Optional[core.File] = None, - input_video: typing.Optional[core.File] = None, - selected_models: typing.Optional[typing.List[UpscalerModels]] = None, - selected_bg_model: typing.Optional[typing.Literal["real_esrgan_x2"]] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + input_image: typing.Optional[core.File] = OMIT, + input_video: typing.Optional[core.File] = OMIT, + selected_models: typing.Optional[typing.List[UpscalerModels]] = OMIT, + selected_bg_model: typing.Optional[typing.Literal["real_esrgan_x2"]] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CompareUpscalerPageOutput: """ @@ -4853,11 +4857,15 @@ def __init__( self._client_wrapper = AsyncClientWrapper( base_url=_get_base_url(base_url=base_url, environment=environment), api_key=api_key, - httpx_client=httpx_client - if httpx_client is not None - else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects) - if follow_redirects is not None - else httpx.AsyncClient(timeout=_defaulted_timeout), + httpx_client=( + httpx_client + if httpx_client is not None + else ( + httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects) + if follow_redirects is not None + else httpx.AsyncClient(timeout=_defaulted_timeout) + ) + ), timeout=_defaulted_timeout, ) self.copilot = AsyncCopilotClient(client_wrapper=self._client_wrapper) @@ -5026,34 +5034,34 @@ async def qr_code( *, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - qr_code_data: typing.Optional[str] = None, - qr_code_input_image: typing.Optional[core.File] = None, - qr_code_vcard: typing.Optional[Vcard] = None, - qr_code_file: typing.Optional[core.File] = None, - use_url_shortener: typing.Optional[bool] = None, - negative_prompt: typing.Optional[str] = None, - image_prompt: typing.Optional[str] = None, - image_prompt_controlnet_models: typing.Optional[typing.List[ControlNetModels]] = None, - image_prompt_strength: typing.Optional[float] = None, - image_prompt_scale: typing.Optional[float] = None, - image_prompt_pos_x: typing.Optional[float] = None, - image_prompt_pos_y: typing.Optional[float] = None, - selected_model: typing.Optional[TextToImageModels] = None, - selected_controlnet_model: typing.Optional[typing.List[ControlNetModels]] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - controlnet_conditioning_scale: typing.Optional[typing.List[float]] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - scheduler: typing.Optional[Schedulers] = None, - seed: typing.Optional[int] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + qr_code_data: typing.Optional[str] = OMIT, + qr_code_input_image: typing.Optional[core.File] = OMIT, + qr_code_vcard: typing.Optional[Vcard] = OMIT, + qr_code_file: typing.Optional[core.File] = OMIT, + use_url_shortener: typing.Optional[bool] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + image_prompt: typing.Optional[str] = OMIT, + image_prompt_controlnet_models: typing.Optional[typing.List[ControlNetModels]] = OMIT, + image_prompt_strength: typing.Optional[float] = OMIT, + image_prompt_scale: typing.Optional[float] = OMIT, + image_prompt_pos_x: typing.Optional[float] = OMIT, + image_prompt_pos_y: typing.Optional[float] = OMIT, + selected_model: typing.Optional[TextToImageModels] = OMIT, + selected_controlnet_model: typing.Optional[typing.List[ControlNetModels]] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + controlnet_conditioning_scale: typing.Optional[typing.List[float]] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + scheduler: typing.Optional[Schedulers] = OMIT, + seed: typing.Optional[int] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> QrCodeGeneratorPageOutput: """ @@ -5961,10 +5969,10 @@ async def bulk_run( input_columns: typing.Dict[str, str], output_columns: typing.Dict[str, str], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - eval_urls: typing.Optional[typing.List[str]] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + eval_urls: typing.Optional[typing.List[str]] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> BulkRunnerPageOutput: """ @@ -6260,21 +6268,21 @@ async def synthesize_data( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - sheet_url: typing.Optional[core.File] = None, - selected_asr_model: typing.Optional[AsrModels] = None, - google_translate_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - task_instructions: typing.Optional[str] = None, - selected_model: typing.Optional[LargeLanguageModels] = None, - avoid_repetition: typing.Optional[bool] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[float] = None, - max_tokens: typing.Optional[int] = None, - sampling_temperature: typing.Optional[float] = None, - response_format_type: typing.Optional[ResponseFormatType] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + sheet_url: typing.Optional[core.File] = OMIT, + selected_asr_model: typing.Optional[AsrModels] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + task_instructions: typing.Optional[str] = OMIT, + selected_model: typing.Optional[LargeLanguageModels] = OMIT, + avoid_repetition: typing.Optional[bool] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[float] = OMIT, + max_tokens: typing.Optional[int] = OMIT, + sampling_temperature: typing.Optional[float] = OMIT, + response_format_type: typing.Optional[ResponseFormatType] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> DocExtractPageOutput: """ @@ -6893,21 +6901,21 @@ async def doc_summary( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - task_instructions: typing.Optional[str] = None, - merge_instructions: typing.Optional[str] = None, - selected_model: typing.Optional[LargeLanguageModels] = None, - chain_type: typing.Optional[CombineDocumentsChains] = None, - selected_asr_model: typing.Optional[AsrModels] = None, - google_translate_target: typing.Optional[str] = None, - avoid_repetition: typing.Optional[bool] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[float] = None, - max_tokens: typing.Optional[int] = None, - sampling_temperature: typing.Optional[float] = None, - response_format_type: typing.Optional[ResponseFormatType] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + task_instructions: typing.Optional[str] = OMIT, + merge_instructions: typing.Optional[str] = OMIT, + selected_model: typing.Optional[LargeLanguageModels] = OMIT, + chain_type: typing.Optional[CombineDocumentsChains] = OMIT, + selected_asr_model: typing.Optional[AsrModels] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + avoid_repetition: typing.Optional[bool] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[float] = OMIT, + max_tokens: typing.Optional[int] = OMIT, + sampling_temperature: typing.Optional[float] = OMIT, + response_format_type: typing.Optional[ResponseFormatType] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> DocSummaryPageOutput: """ @@ -7156,17 +7164,17 @@ async def lipsync( self, *, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - input_face: typing.Optional[core.File] = None, - face_padding_top: typing.Optional[int] = None, - face_padding_bottom: typing.Optional[int] = None, - face_padding_left: typing.Optional[int] = None, - face_padding_right: typing.Optional[int] = None, - sadtalker_settings: typing.Optional[SadTalkerSettings] = None, - selected_model: typing.Optional[LipsyncModels] = None, - input_audio: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + input_face: typing.Optional[core.File] = OMIT, + face_padding_top: typing.Optional[int] = OMIT, + face_padding_bottom: typing.Optional[int] = OMIT, + face_padding_left: typing.Optional[int] = OMIT, + face_padding_right: typing.Optional[int] = OMIT, + sadtalker_settings: typing.Optional[SadTalkerSettings] = OMIT, + selected_model: typing.Optional[LipsyncModels] = OMIT, + input_audio: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LipsyncPageOutput: """ @@ -7297,34 +7305,34 @@ async def lipsync_tts( *, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - tts_provider: typing.Optional[TextToSpeechProviders] = None, - uberduck_voice_name: typing.Optional[str] = None, - uberduck_speaking_rate: typing.Optional[float] = None, - google_voice_name: typing.Optional[str] = None, - google_speaking_rate: typing.Optional[float] = None, - google_pitch: typing.Optional[float] = None, - bark_history_prompt: typing.Optional[str] = None, - elevenlabs_voice_name: typing.Optional[str] = None, - elevenlabs_api_key: typing.Optional[str] = None, - elevenlabs_voice_id: typing.Optional[str] = None, - elevenlabs_model: typing.Optional[str] = None, - elevenlabs_stability: typing.Optional[float] = None, - elevenlabs_similarity_boost: typing.Optional[float] = None, - elevenlabs_style: typing.Optional[float] = None, - elevenlabs_speaker_boost: typing.Optional[bool] = None, - azure_voice_name: typing.Optional[str] = None, - openai_voice_name: typing.Optional[OpenAiTtsVoices] = None, - openai_tts_model: typing.Optional[OpenAiTtsModels] = None, - input_face: typing.Optional[core.File] = None, - face_padding_top: typing.Optional[int] = None, - face_padding_bottom: typing.Optional[int] = None, - face_padding_left: typing.Optional[int] = None, - face_padding_right: typing.Optional[int] = None, - sadtalker_settings: typing.Optional[SadTalkerSettings] = None, - selected_model: typing.Optional[LipsyncModels] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + tts_provider: typing.Optional[TextToSpeechProviders] = OMIT, + uberduck_voice_name: typing.Optional[str] = OMIT, + uberduck_speaking_rate: typing.Optional[float] = OMIT, + google_voice_name: typing.Optional[str] = OMIT, + google_speaking_rate: typing.Optional[float] = OMIT, + google_pitch: typing.Optional[float] = OMIT, + bark_history_prompt: typing.Optional[str] = OMIT, + elevenlabs_voice_name: typing.Optional[str] = OMIT, + elevenlabs_api_key: typing.Optional[str] = OMIT, + elevenlabs_voice_id: typing.Optional[str] = OMIT, + elevenlabs_model: typing.Optional[str] = OMIT, + elevenlabs_stability: typing.Optional[float] = OMIT, + elevenlabs_similarity_boost: typing.Optional[float] = OMIT, + elevenlabs_style: typing.Optional[float] = OMIT, + elevenlabs_speaker_boost: typing.Optional[bool] = OMIT, + azure_voice_name: typing.Optional[str] = OMIT, + openai_voice_name: typing.Optional[OpenAiTtsVoices] = OMIT, + openai_tts_model: typing.Optional[OpenAiTtsModels] = OMIT, + input_face: typing.Optional[core.File] = OMIT, + face_padding_top: typing.Optional[int] = OMIT, + face_padding_bottom: typing.Optional[int] = OMIT, + face_padding_left: typing.Optional[int] = OMIT, + face_padding_right: typing.Optional[int] = OMIT, + sadtalker_settings: typing.Optional[SadTalkerSettings] = OMIT, + selected_model: typing.Optional[LipsyncModels] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> LipsyncTtsPageOutput: """ @@ -7694,17 +7702,17 @@ async def speech_recognition( *, documents: typing.List[core.File], example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - selected_model: typing.Optional[AsrModels] = None, - language: typing.Optional[str] = None, - translation_model: typing.Optional[TranslationModels] = None, - output_format: typing.Optional[AsrOutputFormat] = None, - google_translate_target: typing.Optional[str] = None, - translation_source: typing.Optional[str] = None, - translation_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + selected_model: typing.Optional[AsrModels] = OMIT, + language: typing.Optional[str] = OMIT, + translation_model: typing.Optional[TranslationModels] = OMIT, + output_format: typing.Optional[AsrOutputFormat] = OMIT, + google_translate_target: typing.Optional[str] = OMIT, + translation_source: typing.Optional[str] = OMIT, + translation_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsrPageOutput: """ @@ -7980,14 +7988,14 @@ async def translate( self, *, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - texts: typing.Optional[typing.List[str]] = None, - selected_model: typing.Optional[TranslationModels] = None, - translation_source: typing.Optional[str] = None, - translation_target: typing.Optional[str] = None, - glossary_document: typing.Optional[core.File] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + texts: typing.Optional[typing.List[str]] = OMIT, + selected_model: typing.Optional[TranslationModels] = OMIT, + translation_source: typing.Optional[str] = OMIT, + translation_target: typing.Optional[str] = OMIT, + glossary_document: typing.Optional[core.File] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> TranslationPageOutput: """ @@ -8108,22 +8116,22 @@ async def remix_image( *, input_image: core.File, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - text_prompt: typing.Optional[str] = None, - selected_model: typing.Optional[ImageToImageModels] = None, - selected_controlnet_model: typing.Optional[SelectedControlNetModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - prompt_strength: typing.Optional[float] = None, - controlnet_conditioning_scale: typing.Optional[typing.List[float]] = None, - seed: typing.Optional[int] = None, - image_guidance_scale: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + text_prompt: typing.Optional[str] = OMIT, + selected_model: typing.Optional[ImageToImageModels] = OMIT, + selected_controlnet_model: typing.Optional[SelectedControlNetModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + prompt_strength: typing.Optional[float] = OMIT, + controlnet_conditioning_scale: typing.Optional[typing.List[float]] = OMIT, + seed: typing.Optional[int] = OMIT, + image_guidance_scale: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Img2ImgPageOutput: """ @@ -8438,22 +8446,22 @@ async def product_image( input_image: core.File, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - mask_threshold: typing.Optional[float] = None, - selected_model: typing.Optional[InpaintingModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - sd2upscaling: typing.Optional[bool] = None, - seed: typing.Optional[int] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + mask_threshold: typing.Optional[float] = OMIT, + selected_model: typing.Optional[InpaintingModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + sd2upscaling: typing.Optional[bool] = OMIT, + seed: typing.Optional[int] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> ObjectInpaintingPageOutput: """ @@ -8607,21 +8615,21 @@ async def portrait( input_image: core.File, text_prompt: str, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - face_scale: typing.Optional[float] = None, - face_pos_x: typing.Optional[float] = None, - face_pos_y: typing.Optional[float] = None, - selected_model: typing.Optional[InpaintingModels] = None, - negative_prompt: typing.Optional[str] = None, - num_outputs: typing.Optional[int] = None, - quality: typing.Optional[int] = None, - upscale_factor: typing.Optional[float] = None, - output_width: typing.Optional[int] = None, - output_height: typing.Optional[int] = None, - guidance_scale: typing.Optional[float] = None, - seed: typing.Optional[int] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + face_scale: typing.Optional[float] = OMIT, + face_pos_x: typing.Optional[float] = OMIT, + face_pos_y: typing.Optional[float] = OMIT, + selected_model: typing.Optional[InpaintingModels] = OMIT, + negative_prompt: typing.Optional[str] = OMIT, + num_outputs: typing.Optional[int] = OMIT, + quality: typing.Optional[int] = OMIT, + upscale_factor: typing.Optional[float] = OMIT, + output_width: typing.Optional[int] = OMIT, + output_height: typing.Optional[int] = OMIT, + guidance_scale: typing.Optional[float] = OMIT, + seed: typing.Optional[int] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> FaceInpaintingPageOutput: """ @@ -9130,16 +9138,16 @@ async def remove_background( *, input_image: core.File, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - selected_model: typing.Optional[ImageSegmentationModels] = None, - mask_threshold: typing.Optional[float] = None, - rect_persepective_transform: typing.Optional[bool] = None, - reflection_opacity: typing.Optional[float] = None, - obj_scale: typing.Optional[float] = None, - obj_pos_x: typing.Optional[float] = None, - obj_pos_y: typing.Optional[float] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + selected_model: typing.Optional[ImageSegmentationModels] = OMIT, + mask_threshold: typing.Optional[float] = OMIT, + rect_persepective_transform: typing.Optional[bool] = OMIT, + reflection_opacity: typing.Optional[float] = OMIT, + obj_scale: typing.Optional[float] = OMIT, + obj_pos_x: typing.Optional[float] = OMIT, + obj_pos_y: typing.Optional[float] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> ImageSegmentationPageOutput: """ @@ -9269,13 +9277,13 @@ async def upscale( *, scale: int, example_id: typing.Optional[str] = None, - functions: typing.Optional[typing.List[RecipeFunction]] = None, - variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None, - input_image: typing.Optional[core.File] = None, - input_video: typing.Optional[core.File] = None, - selected_models: typing.Optional[typing.List[UpscalerModels]] = None, - selected_bg_model: typing.Optional[typing.Literal["real_esrgan_x2"]] = None, - settings: typing.Optional[RunSettings] = None, + functions: typing.Optional[typing.List[RecipeFunction]] = OMIT, + variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, + input_image: typing.Optional[core.File] = OMIT, + input_video: typing.Optional[core.File] = OMIT, + selected_models: typing.Optional[typing.List[UpscalerModels]] = OMIT, + selected_bg_model: typing.Optional[typing.Literal["real_esrgan_x2"]] = OMIT, + settings: typing.Optional[RunSettings] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CompareUpscalerPageOutput: """