mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
feat: allow to specify default backend for model (#156)
Signed-off-by: mudler <mudler@c3os.io>
This commit is contained in:
parent
70caf9bf8c
commit
1ae7150810
7 changed files with 97 additions and 77 deletions
|
@ -119,7 +119,9 @@ func updateConfig(config *Config, input *OpenAIRequest) {
|
|||
|
||||
switch stop := input.Stop.(type) {
|
||||
case string:
|
||||
config.StopWords = append(config.StopWords, stop)
|
||||
if stop != "" {
|
||||
config.StopWords = append(config.StopWords, stop)
|
||||
}
|
||||
case []string:
|
||||
config.StopWords = append(config.StopWords, stop...)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue