refactor: 标准导图仅使用报告生成

This commit is contained in:
2026-08-03 23:08:19 +08:00
parent 5b6f7d6a2a
commit b434520eff
7 changed files with 42 additions and 75 deletions
@@ -82,10 +82,10 @@ public class AiServiceClient {
}
/**
* 调用 lpt-ai 从学习数据生成思维导图大纲。
* 调用 lpt-ai 从学习报告生成思维导图大纲。
*/
public Optional<String> generateMindMap(String taskName, String taskDescription,
List<String> reports, List<String> fragments) {
List<String> reports) {
if (!isConfigured()) {
return Optional.empty();
}
@@ -93,8 +93,7 @@ public class AiServiceClient {
Map<String, Object> params = Map.of(
"taskName", taskName,
"taskDescription", taskDescription != null ? taskDescription : "",
"reports", reports != null ? reports : List.of(),
"fragments", fragments != null ? fragments : List.of()
"reports", reports != null ? reports : List.of()
);
Optional<JsonNode> result = submitAndWait("generate-mind-map", params);