forked from di-sukharev/opencommit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ET-1441: add support for configurable maximum input and output …
…token limits (#6) * feat: ET-1441: add support for configurable maximum input and output tokens in OpenAI API calls and update config keys and validation accordingly * feat: ET-1441: update OCO_TOKENS_MAX_INPUT and OCO_TOKENS_MAX_OUTPUT default values in README.md * feat: ET-1441: update generateCommitMessageFromGitDiff.ts to use MAX_TOKENS_OUTPUT from config for calculating MAX_REQUEST_TOKENS value * feat: ET-1441: updated readme with correct config wording * fix: ET-1441: fix typo in variable name, change OCO_TOKENS_MAX_INPUT to OCO_TOKENS_MAX_OUTPUT * feat: ET-1441: add error handling for outputTokensTooHigh when maxChangeLength is exceeded and improve code formatting in generateCommitMessageFromGitDiff.ts file * fix: ET-1441: remove unnecessary space in the code to improve code readability and consistency * refactor: ET-1441: update README and error handling for token limits in generateCommitMessageFromGitDiff * refactor: ET-1441: refactor token limit constants and improve error handling in generateCommitMessageFromGitDiff module --------- Co-authored-by: Matthew Salter <[email protected]>
- Loading branch information
1 parent
c3fb67b
commit ff2ac7e
Showing
4 changed files
with
51 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
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