From e3891943a39debc3d52cc97c34ad8d0b96918c64 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Tue, 19 May 2026 13:21:31 +0300 Subject: [PATCH] Add files via upload --- ai.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ai.py b/ai.py index adbbcad..e184406 100644 --- a/ai.py +++ b/ai.py @@ -3058,7 +3058,8 @@ def main(): has_ref_images = False should_stream = ( - (not has_input_images) + (not is_image_model) + and (not has_input_images) and (not has_ref_images) and (not wants_file_create) and (not is_pdf_text_only_request) @@ -3435,6 +3436,11 @@ def main(): if usage_obj is not None: result_obj["usage"] = usage_obj + if not result_obj.get("content") and ( + result_obj.get("images") or result_obj.get("images_base64") + ): + result_obj["content"] = get_ui_text(cfg, "o_Image_Created") + # hiç image yoksa düz text fallback if not result_obj.get("content") and not result_obj.get("images") and not result_obj.get("images_base64"): txt = _message_to_plain_text(msg.get("content"))