-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): switch func calling to tools (#157)
- Add imports for "fmt" and "log" in `commit.go` - Refactor message output to use a variable in `commit.go` - Update error handling for completion response to check for both errors and the number of choices in `commit.go` - Simplify the handling of summary prefix by removing conditional checks and replacing them with a single error check and assignment in `commit.go` - Change `CreateFunctionCall` to accept a single `FunctionDefinition` instead of a variadic slice in `openai.go` - Remove hardcoded system message content in `openai.go` - Replace `Functions` field with `Tools` in `CreateFunctionCall` to use the new `Tool` struct in `openai.go` - Remove specific function call strings from the allow list in `openai.go` and replace with a single entry Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters