From dc7234640cbfc79a2a6557bd6e818abbffa8878d Mon Sep 17 00:00:00 2001 From: KarrixLee Date: Tue, 22 Apr 2025 18:30:34 +0800 Subject: [PATCH] tweak --- custom_routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_routes.py b/custom_routes.py index 2a0fcf7..77696d6 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -2000,6 +2000,7 @@ async def upload_in_background( ("files", "content_type", "image/png"), ("gifs", "format", "image/gif"), ("model_file", "format", "application/octet-stream"), + ("text", "format", "text/plain"), ]: items = data.get(file_type, []) @@ -2083,6 +2084,7 @@ async def update_run_with_output( or "files" in data or "gifs" in data or "model_file" in data + or "text" in data ) if bypass_upload and have_upload_media: print(