Skip to content

Commit

Permalink
Update KernelTypeChatProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 6, 2024
1 parent 2394917 commit 38fcf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ServiceStack/src/ServiceStack.AI/KernelTypeChatProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task<TypeChatResponse> TranslateMessageAsync(TypeChatRequest reques
var chatCompletionService = Kernel.GetRequiredService<IChatCompletionService>();
var result = await chatCompletionService.GetChatMessageContentAsync(chatHistory, new OpenAIPromptExecutionSettings {
ModelId = ModelId,
}, cancellationToken: token);
}, kernel:Kernel, cancellationToken: token);
return new TypeChatResponse { Result = result.Content! };
}
}

0 comments on commit 38fcf72

Please sign in to comment.