Closed gpww closed 1 year ago
@gpww Where is this file that we should change? Can I have a path or file name, please?
@gpww thanks for raising this. We searched and couldnt find this reference. If you are able to see this persisting please respond and we will take another look. We are closing this as no repo.
Describe the bug something wrong with DI of SemanticKernel builder WithOpenAIChatCompletionService
1.clone https://github.com/jimbobbennett/console-gpt
replace the following code can fix this problem temporarily: services.AddSingleton(serviceProvider => Kernel.Builder
.WithOpenAIChatCompletionService(openAIOptions.ChatModel, openAIOptions.Key)
.WithOpenAIChatCompletionService(openAIOptions.TextModel, openAIOptions.Key)
.Build());
to:
IKernel kernel = Kernel.Builder .WithOpenAIChatCompletionService(openAIOptions.ChatModel, openAIOptions.Key) .WithOpenAITextCompletionService(openAIOptions.TextModel, openAIOptions.Key) .Build();