修复 更改模型的引用

This commit is contained in:
小肥羊 2026-04-13 16:43:54 +08:00
parent b161d83aac
commit 270395e939
2 changed files with 3 additions and 5 deletions

View File

@ -24,8 +24,6 @@ namespace VideoAnalysisCore.AICore.GPT
//public const string Gemini_3_Chat_thinking = "gemini-3-pro-preview-thinking";
public const string Gemini_3_Chat = "gemini-3.1-pro-preview";
//public const string Gemini_3_Chat_flash = "gemini-3-flash-preview";
public const string Gemini_31_Chat_flash = "gemini-3.1-flash-preview";
public const string Gemini_31_Chat_flash = "gemini-3.1-flash-lite-preview";
}
}

View File

@ -242,7 +242,7 @@ namespace VideoAnalysisCore.AICore.GPT
json {checkResFormat}
""";
return await chatGPTClient.ChatAsync<CheckMessageDto>(taskInfo.Id.ToString(), checkMessage, "结果检查");
return await chatGPTClient.ChatAsync<CheckMessageDto>(taskInfo.Id.ToString(), checkMessage, "结果检查",ChatGPTType.GPT54);
}
/// <summary>
/// 采用改进意见
@ -762,7 +762,7 @@ namespace VideoAnalysisCore.AICore.GPT
}
var maxVideoTime = captions?.TimeBase?.LastOrDefault()?.End ?? 0;
List<VideoKnowRes>? questionRes = null;
var tryCount = 20;
var tryCount = 3;
var last改进意见 = string.Empty;
while (tryCount-- > 0)
{