From 73b9b5213f8e08c59e208ea73c3c4171338db89e Mon Sep 17 00:00:00 2001 From: stasex Date: Wed, 25 Oct 2023 14:45:44 +0300 Subject: [PATCH] added a small change to the service --- .../Services/ProductService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ShoppingAssistantApi.Infrastructure/Services/ProductService.cs b/ShoppingAssistantApi.Infrastructure/Services/ProductService.cs index b4d4739..5d0ff84 100644 --- a/ShoppingAssistantApi.Infrastructure/Services/ProductService.cs +++ b/ShoppingAssistantApi.Infrastructure/Services/ProductService.cs @@ -99,6 +99,12 @@ public class ProductService : IProductService }); } + messagesForOpenAI.Add(new OpenAiMessage() + { + Role = MessageRoles.User.ToString().ToLower(), + Content = message.Text + }); + chatRequest = new ChatCompletionRequest { Messages = messagesForOpenAI,