[Done] chore: apply changes for Issue #630 - #631
Merged
Conversation
YiweiShen
reviewed
Mar 1, 2026
| */ | ||
|
|
||
| export const defaultModel = 'gpt-5.3-codex'; | ||
| export const defaultCommitMessageModel = 'gpt-5.2-codex'; |
Owner
There was a problem hiding this comment.
/codex For commit messages, please continue using a different model, as GPT-5.3-Codex is not available via the API.
Author
There was a problem hiding this comment.
Updated as requested: commit-message generation now keeps a separate default model from the main Codex model.
Changed:
- src/api/openai.ts:19
defaultCommitMessageModelis nowgpt-4.1-mini(instead of mirroringdefaultModel). - action.yml:30
Updated input description default foropenai-commit-message-model. - docs/configuration.md:24
Updated docs default foropenai-commit-message-model.
Validation note:
- Could not run build/tests in this environment because dependencies are not installed (
esbuildandjestnot found).
YiweiShen
approved these changes
Mar 1, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #630
Applied changes based on Issue #630.
Implemented a fix for the fallback behavior and traced the likely cause.
What was happening
generateCommitMessageOpenAI(viagenerateCommitMessage) had a single path throughchat.completions.create, and any API error immediately returnedgetFallbackMessage. If that endpoint/model combo fails, it will always fallback.Changes made
src/api/openai.ts:openai.responses.create(...)first.openai.chat.completions.create(...).src/api/openai.tsdefaultCommitMessageModelnow equalsdefaultModel(gpt-5.3-codex) insrc/api/openai.tsaction.ymldocs/configuration.md__tests__/src/api/openai.test.tsValidation
npm run buildpassed.npm test -- __tests__/src/api/openai.test.tsin this repo fails due existing Jest ESM/top-level-await config mismatch, not from this patch.