deepseek wip
This commit is contained in:
+5
-1
@@ -62,6 +62,7 @@ namespace AnotherReplayReader
|
||||
private CancellationTokenSource? _linkedCts;
|
||||
private AIAnalyze? _analyzer;
|
||||
private TimeIndexedPrefixSums? _eventCounts;
|
||||
private ReplayFactIndex? _factIndex;
|
||||
|
||||
// 分析状态
|
||||
private bool _isRunning;
|
||||
@@ -165,6 +166,7 @@ namespace AnotherReplayReader
|
||||
_blockCountBeforeSegment = 0;
|
||||
_analyzer = null;
|
||||
_eventCounts = null;
|
||||
_factIndex = null;
|
||||
|
||||
_document.Blocks.Clear();
|
||||
_updateCurrentThinkingSection = null;
|
||||
@@ -198,6 +200,7 @@ namespace AnotherReplayReader
|
||||
ImmutableSortedDictionary<int, Player> players,
|
||||
string replayData,
|
||||
TimeIndexedPrefixSums eventCounts,
|
||||
ReplayFactIndex factIndex,
|
||||
CancellationToken externalToken)
|
||||
{
|
||||
if (_isRunning)
|
||||
@@ -245,6 +248,7 @@ namespace AnotherReplayReader
|
||||
|
||||
_analyzer = new AIAnalyze();
|
||||
_eventCounts = eventCounts;
|
||||
_factIndex = factIndex;
|
||||
|
||||
FinishCurrentContent();
|
||||
var requestContext = GetRequestContext();
|
||||
@@ -359,7 +363,7 @@ namespace AnotherReplayReader
|
||||
requestContext,
|
||||
OnChunk,
|
||||
_linkedCts.Token);
|
||||
var validationResult = AIAnalysisValidation.ValidateMachineReadableClaims(segmentResult.Response);
|
||||
var validationResult = AIAnalysisValidation.ValidateMachineReadableClaims(segmentResult.Response, _factIndex);
|
||||
if (validationResult.HasIssues)
|
||||
{
|
||||
AppendLog(
|
||||
|
||||
Reference in New Issue
Block a user