fix: select function calls if 'name' is set in the request (#827)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2023-07-28 01:17:11 +02:00 committed by GitHub
parent 096d98c3d9
commit dde12b492b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ func updateConfig(config *config.Config, input *OpenAIRequest) {
n, exists := fnc["name"] n, exists := fnc["name"]
if exists { if exists {
nn, e := n.(string) nn, e := n.(string)
if !e { if e {
name = nn name = nn
} }
} }