Renamed RequestParameters.ToolBag to Toolbox
This commit is contained in:
@@ -177,8 +177,8 @@ func createChatCompletionRequest(
|
||||
N: 1, // limit responses to 1 "choice". we use choices[0] to reference it
|
||||
}
|
||||
|
||||
if len(params.ToolBag) > 0 {
|
||||
request.Tools = convertTools(params.ToolBag)
|
||||
if len(params.Toolbox) > 0 {
|
||||
request.Tools = convertTools(params.Toolbox)
|
||||
request.ToolChoice = "auto"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user