Skip to content

Commit

Permalink
Merge pull request #411 from uezo/fix-bug-error-before-processing-con…
Browse files Browse the repository at this point in the history
…tent

Fix bug where DialogProcessor fails on before processing LLM stream
  • Loading branch information
uezo authored Dec 13, 2024
2 parents a091d8a + 16a5b92 commit 4b82119
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Scripts/Dialog/DialogProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ public async UniTask StartDialogAsync(string text, Dictionary<string, object> pa
}
}

await OnBeforeProcessContentStreamAsync(llmSession, token);
if (OnBeforeProcessContentStreamAsync != null)
{
await OnBeforeProcessContentStreamAsync(llmSession, token);
}

// Start parsing voices, faces and animations
var processContentStreamTask = llmContentProcessor.ProcessContentStreamAsync(llmSession, token);
Expand Down

0 comments on commit 4b82119

Please sign in to comment.