Compare commits

..

No commits in common. "b161d83aace5750c1c6cdc8e86f576460e866e27" and "3e2627c55e8ab9fe8b8c740c75ffb8d2a311a90c" have entirely different histories.

3 changed files with 8 additions and 14 deletions

View File

@ -11,7 +11,7 @@ namespace VideoAnalysisCore.AICore.GPT
//public const string GPT5_mini = "gpt-5-mini";
//public const string GPT5 = "gpt-5-2025-08-07";
public const string GPT54_mini = "gpt-5.4-mini-2026-03-17";
public const string GPT54_mini = "gpt-5.4-mini";
public const string GPT54 = "gpt-5.4";
public const string Deepseek_Reasoner = "deepseek-reasoner";

View File

@ -75,7 +75,7 @@ namespace VideoAnalysisCore.AICore.GPT
var chatResp = await PostJsonStreamAsync(Config.Host + Config.Path, chatReq, Config.ApiKey);
if (!chatResp.IsSuccessStatusCode)
{
await _workflowManager.AddTaskLog(chatReq.taskId, $"==>请求GPT服务器异常 {chatResp?.StatusCode} 模型 {chatReq.model} {await chatResp.Content.ReadAsStringAsync()}");
await _workflowManager.AddTaskLog(chatReq.taskId, "==>请求GPT服务器异常 " + chatResp?.StatusCode + " " + await chatResp.Content.ReadAsStringAsync());
if (--i < 0)
{
throw new Exception("请求GPT服务器失败次数过多");

View File

@ -220,17 +220,16 @@ namespace VideoAnalysisCore.AICore.GPT
var checkMessage =
$"""
{(taskInfo.VideoType == AttachmentsInfoType. ?" 本堂课是复习课,分段可能是针对大段的知识点讲解" :string.Empty)}
{pptFormat}
{sections}
Theme/Conten匹配,()
Theme/Conten匹配,()
Conten有关联()
:
1.
2.
2.
3.
0-10070,,
@ -395,7 +394,7 @@ namespace VideoAnalysisCore.AICore.GPT
/// </summary>
/// <returns></returns>
private async Task<List<VideoKnowRes>> Analytics(VideoTask taskInfo,
TotalCaptionsDto captions, string sections,string last改进意见)
TotalCaptionsDto captions, string sections)
{
var tryCount = 10;
while (tryCount-- > 0)
@ -423,10 +422,8 @@ namespace VideoAnalysisCore.AICore.GPT
{keyFrameStr}
Stage
Content40~150..., ,
ThemeContent xxxx的基本应用
{(string.IsNullOrEmpty(last改进意见) ? last改进意见 :"我还有一段上次分析结果的的改进意见 也请你在分析时也参考不要在出现相同问题 "+ last改进意见)}
--------------------------------------------------------
Content40~150...,
ThemeContent西
json格式({resFormat})
(:|).
@ -763,11 +760,10 @@ namespace VideoAnalysisCore.AICore.GPT
var maxVideoTime = captions?.TimeBase?.LastOrDefault()?.End ?? 0;
List<VideoKnowRes>? questionRes = null;
var tryCount = 20;
var last改进意见 = string.Empty;
while (tryCount-- > 0)
{
//视频字幕分析
questionRes = await Analytics(taskInfo, captions, sections, last改进意见);
questionRes = await Analytics(taskInfo, captions, sections);
if (questionRes is null) continue;
//处理分段 知识点
List<VideoKonwPoint> insertData = await GetVideoKnow(questionRes, taskInfo, sections, knowledgeInfos);
@ -778,8 +774,6 @@ namespace VideoAnalysisCore.AICore.GPT
await _workflowManager.AddTaskLog(taskInfo.Id, $"==>课堂内容AI分析结果 得分=>{checkRes.Score}");
await _workflowManager.AddTaskLog(taskInfo.Id, $"==>改进意见 {checkRes.Suggestion}");
await _workflowManager.AddTaskLog(taskInfo.Id, $"==>扣分原因 {checkRes.MinusScore}");
last改进意见 = checkRes.Suggestion;
// 质量复检
//if (checkRes != null)
//{