修复 请求AI超时后不记录日志问题
This commit is contained in:
parent
3f113a9bc5
commit
363bf5325e
|
|
@ -138,8 +138,9 @@ namespace VideoAnalysisCore.AICore.GPT
|
|||
}
|
||||
}
|
||||
}
|
||||
await redisManager.AddTaskLog(chatReq.taskId, DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
return null;
|
||||
throw new Exception(DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
//await redisManager.AddTaskLog(chatReq.taskId, DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
//return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -202,7 +203,7 @@ namespace VideoAnalysisCore.AICore.GPT
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT结果解析错误 重试剩余{tryCount} {ex.Message}");
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT结果解析错误 重试剩余{tryCount} {ex.Message} {ex.StackTrace}");
|
||||
}
|
||||
}
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT请求失败次数过多!!!");
|
||||
|
|
|
|||
Loading…
Reference in New Issue