Commit 70f6f19f authored by alex yao's avatar alex yao

fix:插件文件缺失异常

parent d68e8e1f
...@@ -174,7 +174,9 @@ public class AgentApplicationTools { ...@@ -174,7 +174,9 @@ public class AgentApplicationTools {
} }
query = "用户输入:" + query + "\n"; query = "用户输入:" + query + "\n";
if (CollectionUtils.isNotEmpty(fileUrls)) { if (CollectionUtils.isNotEmpty(fileUrls)) {
query = query + "用户上传文件地址:" + JsonUtils.serialize(fileUrls) + "\n" + "文件格式:" + fileUrls.get(0).substring(fileUrls.get(0).lastIndexOf(".")) + "\n"; query = query + "用户上传文件地址:" + JsonUtils.serialize(fileUrls) + "\n" + "文件格式:" + fileUrls.get(0).substring(fileUrls.get(0).lastIndexOf(".")) + "\n";
} else {
query = query + "用户上传文件地址:无\n" + "文件格式:无\n";
} }
List<Tool> deductionTools = new ArrayList<>(); List<Tool> deductionTools = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment