Skip to content

Commit

Permalink
fix: select function calls if 'name' is set in the request (#827)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
  • Loading branch information
mudler committed Jul 27, 2023
1 parent 096d98c commit dde12b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/openai/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit dde12b4

Please sign in to comment.