From b1e878386e8bdc8246581d0a3751bfe5d00c7db0 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Mon, 23 Oct 2023 22:42:32 +0300 Subject: [PATCH] fix: OpenAiHttpClient JWT configuration --- .../InfrastructureExtentions/ServicesExtention.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShoppingAssistantApi.Infrastructure/InfrastructureExtentions/ServicesExtention.cs b/ShoppingAssistantApi.Infrastructure/InfrastructureExtentions/ServicesExtention.cs index cbc7b65..32aa136 100644 --- a/ShoppingAssistantApi.Infrastructure/InfrastructureExtentions/ServicesExtention.cs +++ b/ShoppingAssistantApi.Infrastructure/InfrastructureExtentions/ServicesExtention.cs @@ -28,9 +28,9 @@ public static class ServicesExtention "OpenAiHttpClient", client => { - client.BaseAddress = new Uri(configuration.GetValue("ApiUri")); + client.BaseAddress = new Uri(configuration.GetValue("OpenAi:ApiUrl")); client.DefaultRequestHeaders.Authorization = - new AuthenticationHeaderValue("Bearer", configuration.GetValue("ApiKey")); + new AuthenticationHeaderValue("Bearer", configuration.GetValue("OpenAi:ApiKey")); }); return services;