Add files via upload

This commit is contained in:
FURK4NGG
2026-05-19 13:21:31 +03:00
committed by GitHub
parent 2d0b6fb73c
commit e3891943a3
+7 -1
View File
@@ -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"))