From 82388b0c197abefe813566fffc6ae7f8ec403d75 Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Tue, 20 May 2025 16:12:08 +0800 Subject: [PATCH] =?UTF-8?q?TASK:LLM=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/LLMServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java b/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java index 0e410777..af8cc65f 100644 --- a/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java @@ -89,7 +89,7 @@ public class LLMServiceImpl implements LLMService { jsonBodyObject.put("role", "user"); jsonBodyObject.put("image", !CollectionUtils.isEmpty(imageUrlList) ? imageUrlList : null); // 可扩展 // jsonBodyObject.put("image", ""); // 可扩展 - jsonBodyObject.put("file", fileUrl != null ? Collections.singletonList(fileUrl) : null); + jsonBodyObject.put("file", !StringUtils.isEmpty(fileUrl) ? Collections.singletonList(fileUrl) : null); jsonBodyObject.put("message", prompt); jsonBodyObject.put("enable_thinking", enableThinking);