mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-18 06:58:09 +00:00
feat: Add UseFastTokenizer
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@ -83,6 +83,10 @@ func updateConfig(config *config.Config, input *OpenAIRequest) {
|
||||
config.NegativePromptScale = input.NegativePromptScale
|
||||
}
|
||||
|
||||
if input.UseFastTokenizer {
|
||||
config.UseFastTokenizer = input.UseFastTokenizer
|
||||
}
|
||||
|
||||
if input.NegativePrompt != "" {
|
||||
config.NegativePrompt = input.NegativePrompt
|
||||
}
|
||||
|
Reference in New Issue
Block a user