Compare commits
No commits in common. "929d6f8a98f88f1c05a5c8866f946725b821caaa" and "3f113a9bc58414407784378a7ecd38db5873ed6b" have entirely different histories.
929d6f8a98
...
3f113a9bc5
|
|
@ -39,8 +39,7 @@
|
|||
"ChatGpt": {
|
||||
"KIMI": {
|
||||
"Host": "https://api.moonshot.cn",
|
||||
//"ApiKey": "sk-8BvvhESZIkgUbiaaJhglPxFa4o2X9H3xEv9lXELrWWwGxHWY"
|
||||
"ApiKey": "sk-sHk2ecDDJW44svtJpviAZe8utY3bRnIyXVm9zMRwdnzhGkER"
|
||||
"ApiKey": "sk-8BvvhESZIkgUbiaaJhglPxFa4o2X9H3xEv9lXELrWWwGxHWY"
|
||||
},
|
||||
"ChatGpt": {
|
||||
//"Host": "https://api.g4f.icu/",
|
||||
|
|
|
|||
|
|
@ -138,9 +138,8 @@ namespace VideoAnalysisCore.AICore.GPT
|
|||
}
|
||||
}
|
||||
}
|
||||
throw new Exception(DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
//await redisManager.AddTaskLog(chatReq.taskId, DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
//return null;
|
||||
await redisManager.AddTaskLog(chatReq.taskId, DateTime.Now + "=>AI请求超时 " + chatReq.taskId);
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -203,7 +202,7 @@ namespace VideoAnalysisCore.AICore.GPT
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT结果解析错误 重试剩余{tryCount} {ex.Message} {ex.StackTrace}");
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT结果解析错误 重试剩余{tryCount} {ex.Message}");
|
||||
}
|
||||
}
|
||||
await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT请求失败次数过多!!!");
|
||||
|
|
|
|||
|
|
@ -273,7 +273,6 @@ namespace VideoAnalysisCore.Controllers
|
|||
[HttpGet]
|
||||
public async Task ReStart(long id, RedisChannelEnum selectEnum)
|
||||
{
|
||||
await redisManager.AddTaskLog(id,"手动重试任务");
|
||||
await redisManager.ClearTaskError(id);
|
||||
_ = Task.Run(async () =>
|
||||
await redisManager.InsertChannel(selectEnum, id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue