fix(grammar): respect JSONmode and grammar from user input (#1935)

* fix(grammar): Fix JSON mode and custom grammar

* tests(aio): add jsonmode test

* tests(aio): add functioncall test

* fix(aio): use hermes-2-pro-mistral as llm for CPU profile

* add phi-2-orange
This commit is contained in:
Ettore Di Giacinto 2024-03-31 13:04:09 +02:00 committed by GitHub
parent 784657a652
commit 35290e146b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 139 additions and 5 deletions

View file

@ -73,6 +73,8 @@ func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, a
input.Grammar = grammar.JSONBNF
}
config.Grammar = input.Grammar
log.Debug().Msgf("Parameter Config: %+v", config)
if input.Stream {