mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-28 06:25:00 +00:00
models(gallery): add Codestral (#2442)
models(gallery): add Coderstral Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
0c40f545d4
commit
5b75bf16c7
2 changed files with 26 additions and 1 deletions
|
@ -112,7 +112,8 @@ func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, a
|
|||
|
||||
if templateFile != "" {
|
||||
templatedInput, err := ml.EvaluateTemplateForPrompt(model.CompletionPromptTemplate, templateFile, model.PromptTemplateData{
|
||||
Input: predInput,
|
||||
Input: predInput,
|
||||
SystemPrompt: config.SystemPrompt,
|
||||
})
|
||||
if err == nil {
|
||||
predInput = templatedInput
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue