From 03c4e2d85d5a3e8df891001604ae49be3be6dc76 Mon Sep 17 00:00:00 2001 From: KarrixLee Date: Sat, 26 Jul 2025 18:37:09 +0800 Subject: [PATCH] Add audio file upload support --- custom_routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_routes.py b/custom_routes.py index d225588..ed6d07e 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -2098,6 +2098,7 @@ async def upload_in_background( ("model_file", "format", "application/octet-stream"), ("result", "format", "application/octet-stream"), ("text_file", "format", "text/plain"), + ("audio", "format", "audio/mpeg"), ]: items = data.get(file_type, []) @@ -2185,6 +2186,7 @@ async def update_run_with_output( or "model_file" in data or "result" in data or "text_file" in data + or "audio" in data ) if bypass_upload and have_upload_media: print(