mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-27 00:48:10 +00:00
--author:scott--date:20261026--for:优化插件工具异常,报错不影响AI后续执行
This commit is contained in:
parent
a20cba0adf
commit
7493b63a5f
@ -233,10 +233,16 @@ public class PluginToolBuilder {
|
||||
return response.getBody() != null ? response.getBody() : "";
|
||||
} catch (HttpClientErrorException e) {
|
||||
log.error("插件工具HTTP请求失败: {}", e.getMessage(), e);
|
||||
return "请求失败: " + e.getStatusCode() + " - " + e.getResponseBodyAsString();
|
||||
//update-begin---author:wangshuai---date:2026-01-16---for:【QQYUN-14577】图片搜索失败会导致进行不下去---
|
||||
return "插件调用失败(HTTP " + e.getStatusCode() + "):" + e.getResponseBodyAsString()
|
||||
+ "。请继续完成剩余任务。";
|
||||
//update-end---author:wangshuai---date:2026-01-16---for:【QQYUN-14577】图片搜索失败会导致进行不下去---
|
||||
} catch (Exception e) {
|
||||
log.error("插件工具执行失败: {}", e.getMessage(), e);
|
||||
return "工具执行失败: " + e.getMessage();
|
||||
//update-begin---author:wangshuai---date:2026-01-16---for:【QQYUN-14577】图片搜索失败会导致进行不下去---
|
||||
return "插件工具执行失败:" + e.getMessage()
|
||||
+ "。请继续完成剩余任务。";
|
||||
//update-end---author:wangshuai---date:2026-01-16---for:【QQYUN-14577】图片搜索失败会导致进行不下去---
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user