From 9f2434f1827b7a22e4d85d930624747826995883 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Mon, 1 Sep 2025 23:48:16 +0800 Subject: [PATCH] imageData not to content --- src/app/api/simulator/[id]/execute/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/simulator/[id]/execute/route.ts b/src/app/api/simulator/[id]/execute/route.ts index 6e493c9..68b76f5 100644 --- a/src/app/api/simulator/[id]/execute/route.ts +++ b/src/app/api/simulator/[id]/execute/route.ts @@ -66,9 +66,9 @@ const IMAGE_MODEL_ADAPTERS: Record = { } } - // 如果有图片数据,返回图片数据,否则返回文本内容 + // 如果有图片数据,不返回到 content 中,只存储到 imageData return { - content: imageData || content || 'No image data found in response', + content: imageData ? '' : (content || 'No image data found in response'), outputType: 'image', imageData: imageData }