minor change
This commit is contained in:
parent
734d8f7f2e
commit
ffd9823ccd
|
|
@ -237,7 +237,7 @@ public class ChatCompletionProvider : IChatCompletion
|
||||||
textStream.Collect(text);
|
textStream.Collect(text);
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
_logger.LogCritical($"Content update: {text}");
|
_logger.LogCritical($"Stream Content update: {text}");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
var content = new RoleDialogModel(AgentRole.Assistant, text)
|
var content = new RoleDialogModel(AgentRole.Assistant, text)
|
||||||
|
|
@ -277,7 +277,7 @@ public class ChatCompletionProvider : IChatCompletion
|
||||||
else if (choice.FinishReason.HasValue)
|
else if (choice.FinishReason.HasValue)
|
||||||
{
|
{
|
||||||
var allText = textStream.GetText();
|
var allText = textStream.GetText();
|
||||||
_logger.LogCritical($"Text Content: {allText}");
|
_logger.LogInformation($"Stream text Content: {allText}");
|
||||||
|
|
||||||
responseMessage = new RoleDialogModel(AgentRole.Assistant, allText)
|
responseMessage = new RoleDialogModel(AgentRole.Assistant, allText)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue