drop requestSystemPrompt override

This commit is contained in:
Aman Karmani 2023-07-20 18:27:53 -07:00
parent 72f3398211
commit 60f52f85f2

View file

@ -115,9 +115,6 @@ func ChatEndpoint(cm *config.ConfigLoader, o *options.Option) func(c *fiber.Ctx)
for messageIndex, i := range input.Messages {
var content string
role := i.Role
if role == "system" {
requestSystemPrompt = *i.Content
}
// if function call, we might want to customize the role so we can display better that the "assistant called a json action"
// if an "assistant_function_call" role is defined, we use it, otherwise we use the role that is passed by in the request