mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +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"]
|
n, exists := fnc["name"]
|
||||||
if exists {
|
if exists {
|
||||||
nn, e := n.(string)
|
nn, e := n.(string)
|
||||||
if !e {
|
if e {
|
||||||
name = nn
|
name = nn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user