fix: 修复bug
将 responseResult.Item1 的比较从严格等于改为包含判断,兼容部分 AI 工具返回带前后缀的异常字符串(例如 "exception: ..." 等),避免漏掉异常分支处理。修改文件:Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs。
This commit is contained in:
@@ -642,7 +642,7 @@ public class AiGateWayManager : DomainService
|
|||||||
isFirst = false;
|
isFirst = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (responseResult.Item1=="exception")
|
if (responseResult.Item1.Contains("exception"))
|
||||||
{
|
{
|
||||||
//兼容部分ai工具问题
|
//兼容部分ai工具问题
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user