sync of changes

This commit is contained in:
2024-11-09 19:50:14 -05:00
parent 37939088ed
commit cd4ad59a38
4 changed files with 3 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ func (o openaiImpl) requestToOpenAIRequest(request Request) oai.ChatCompletionRe
res.Messages = append(res.Messages, m)
}
for _, tool := range request.Toolbox {
for _, tool := range request.Toolbox.funcs {
res.Tools = append(res.Tools, oai.Tool{
Type: "function",
Function: &oai.FunctionDefinition{