TASK:LLM;

This commit is contained in:
shahaibo
2025-05-20 16:12:08 +08:00
parent 588202311c
commit 82388b0c19

View File

@@ -89,7 +89,7 @@ public class LLMServiceImpl implements LLMService {
jsonBodyObject.put("role", "user"); jsonBodyObject.put("role", "user");
jsonBodyObject.put("image", !CollectionUtils.isEmpty(imageUrlList) ? imageUrlList : null); // 可扩展 jsonBodyObject.put("image", !CollectionUtils.isEmpty(imageUrlList) ? imageUrlList : null); // 可扩展
// jsonBodyObject.put("image", ""); // 可扩展 // 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("message", prompt);
jsonBodyObject.put("enable_thinking", enableThinking); jsonBodyObject.put("enable_thinking", enableThinking);