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,