mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
drop requestSystemPrompt override
This commit is contained in:
parent
72f3398211
commit
60f52f85f2
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue