mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-04 16:49:36 +00:00
fix: OpenAiHttpClient JWT configuration
This commit is contained in:
parent
e265257a2a
commit
b1e878386e
@ -28,9 +28,9 @@ public static class ServicesExtention
|
||||
"OpenAiHttpClient",
|
||||
client =>
|
||||
{
|
||||
client.BaseAddress = new Uri(configuration.GetValue<string>("ApiUri"));
|
||||
client.BaseAddress = new Uri(configuration.GetValue<string>("OpenAi:ApiUrl"));
|
||||
client.DefaultRequestHeaders.Authorization =
|
||||
new AuthenticationHeaderValue("Bearer", configuration.GetValue<string>("ApiKey"));
|
||||
new AuthenticationHeaderValue("Bearer", configuration.GetValue<string>("OpenAi:ApiKey"));
|
||||
});
|
||||
|
||||
return services;
|
||||
|
Loading…
Reference in New Issue
Block a user