Open mohammad-shadmehr opened 11 months ago
I get the same. Even when using the Rystem.OpenAi.WebApp from this repo.
My only changes:
var apiKey = builder.Configuration["OpenAi:ApiKey"]; builder.Services.AddOpenAi(settings => { settings.ApiKey = apiKey; });
And ofcourse added the ApiKey to appsettings
here is mine in the Startup.cs: services.AddOpenAi(settings => { settings.ApiKey = _appConfiguration["Chat-Gpt:SecretKey"]; });
Getting the same error. When will it be fixed?
Also getting this erro
This is a duplicate of #70.
@KeyserDSoze any idea if this (#70 has the technical details) has been addressed? I see there have been a few releases recently, I can do another upgrade and test out if you are unsure.
Describe the bug
I have already set the openai in the start up via dependency injection. I am just trying to make a simple request but keep getting a null reference exception. I can see the _iOpenAi is not null and have no idea if I am missing something in my code?
To Reproduce
just a simple request call
Code snippets
OS
Windows
.Net version
.Net 7
Library version
1.0.3