-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for JSON mode and deterministic seed in ChatGPT API
This commit introduces the ability to request JSON-formatted responses and deterministic outputs from the ChatGPT API. The jsonMode flag and seed option have been added to all ChatGPT completion methods. The OpenAiClient has been updated to build a request based on these options. The ChatGPTTranslatorService has been adjusted to include these parameters when making requests. The TokensCounterDecorator has been removed as it's deprecated in the API's newer versions. The version number has been updated to reflect these changes.
- Loading branch information
Showing
8 changed files
with
125 additions
and
153 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
Oops, something went wrong.