-
-
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(openrouter): refactor model handling and error logic (#164)
- Update model selection logic to use `IsCustomModel` method for determining the current model in `commit.go` and `review.go`. - Remove conditional function call logic in `commit.go`. - Simplify error handling and remove specific model checks in `openai.go`. - Introduce handling for custom models and update error messages in `options.go` and `options_test.go`. - Add support for a new provider `OPENROUTER` in `options.go`. Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information
Showing
5 changed files
with
65 additions
and
146 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