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);