Compare commits

..

No commits in common. "929d6f8a98f88f1c05a5c8866f946725b821caaa" and "3f113a9bc58414407784378a7ecd38db5873ed6b" have entirely different histories.

3 changed files with 4 additions and 7 deletions

View File

@ -39,8 +39,7 @@
"ChatGpt": { "ChatGpt": {
"KIMI": { "KIMI": {
"Host": "https://api.moonshot.cn", "Host": "https://api.moonshot.cn",
//"ApiKey": "sk-8BvvhESZIkgUbiaaJhglPxFa4o2X9H3xEv9lXELrWWwGxHWY" "ApiKey": "sk-8BvvhESZIkgUbiaaJhglPxFa4o2X9H3xEv9lXELrWWwGxHWY"
"ApiKey": "sk-sHk2ecDDJW44svtJpviAZe8utY3bRnIyXVm9zMRwdnzhGkER"
}, },
"ChatGpt": { "ChatGpt": {
//"Host": "https://api.g4f.icu/", //"Host": "https://api.g4f.icu/",

View File

@ -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);
//await redisManager.AddTaskLog(chatReq.taskId, DateTime.Now + "=>AI请求超时 " + chatReq.taskId); return null;
//return null;
} }
/// <summary> /// <summary>
@ -203,7 +202,7 @@ namespace VideoAnalysisCore.AICore.GPT
} }
catch (Exception ex) 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请求失败次数过多!!!"); await redisManager.AddTaskLog(chatRep.taskId, $"=>GPT请求失败次数过多!!!");

View File

@ -273,7 +273,6 @@ namespace VideoAnalysisCore.Controllers
[HttpGet] [HttpGet]
public async Task ReStart(long id, RedisChannelEnum selectEnum) public async Task ReStart(long id, RedisChannelEnum selectEnum)
{ {
await redisManager.AddTaskLog(id,"手动重试任务");
await redisManager.ClearTaskError(id); await redisManager.ClearTaskError(id);
_ = Task.Run(async () => _ = Task.Run(async () =>
await redisManager.InsertChannel(selectEnum, id) await redisManager.InsertChannel(selectEnum, id)