mirror of
https://github.com/mudler/LocalAI.git
synced 2025-01-18 10:46:46 +00:00
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:
parent
096d98c3d9
commit
dde12b492b
@ -183,7 +183,7 @@ func updateConfig(config *config.Config, input *OpenAIRequest) {
|
||||
n, exists := fnc["name"]
|
||||
if exists {
|
||||
nn, e := n.(string)
|
||||
if !e {
|
||||
if e {
|
||||
name = nn
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user