mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-12 01:48:49 +00:00
added a small change to the service
This commit is contained in:
parent
77b14bf4c7
commit
73b9b5213f
@ -99,6 +99,12 @@ public class ProductService : IProductService
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
messagesForOpenAI.Add(new OpenAiMessage()
|
||||||
|
{
|
||||||
|
Role = MessageRoles.User.ToString().ToLower(),
|
||||||
|
Content = message.Text
|
||||||
|
});
|
||||||
|
|
||||||
chatRequest = new ChatCompletionRequest
|
chatRequest = new ChatCompletionRequest
|
||||||
{
|
{
|
||||||
Messages = messagesForOpenAI,
|
Messages = messagesForOpenAI,
|
||||||
|
Loading…
Reference in New Issue
Block a user