-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add temperature control to OpenAI package
- Set the default sampling temperature to 0.7 - Add a flag to set the sampling temperature in the config command - Move the initialization of the `openai` package from the `commit` command to a separate file - Add a `WithTemperature` function to the `openai` package to set the sampling temperature - Change the `maxTokens` variable in the `review` command from package level to local scope - Set the `temperature` field in the `Client` struct of the `openai` package to the value set by `WithTemperature` Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Loading branch information
Showing
5 changed files
with
44 additions
and
23 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
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
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