fix:fix open ai original validation. modify Tool's Function to pointer (#664)

Co-authored-by: caopengfei1 <caopengfei1@tal.com>
This commit is contained in:
CaoPengFlyingandcaopengfei1 authored and GitHub committed 2024-02-19 16:26:04 +04:00
1 parent 69e3bbb1eb
commit e8b347891b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ func main() {
}
t := openai.Tool{
Type: openai.ToolTypeFunction,
Function: f,
Function: &f,
}
// simulate user asking a question that requires the function