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

fix:插件文件缺失异常

parent d68e8e1f
......@@ -175,6 +175,8 @@ public class AgentApplicationTools {
query = "用户输入:" + query + "\n";
if (CollectionUtils.isNotEmpty(fileUrls)) {
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<>();
......
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