feat(pipeline): default OpenAI generation model to gpt-5.4 - #4
Open
anthonyadame wants to merge 1 commit into
Open
feat(pipeline): default OpenAI generation model to gpt-5.4#4anthonyadame wants to merge 1 commit into
anthonyadame wants to merge 1 commit into
Conversation
Flip DEFAULT_OPENAI_MODEL from gpt-4.1 to gpt-5.4 for the decompose/recompose generation pipelines (the OpenAI default when no --model is given). gpt-5.4 was validated as the strong, low-cost default in the staging repair-loop benchmarks and is fully overridable via --model. The gpt-5* reasoning-model API params (no temperature, max_completion_tokens) are already handled via the existing is_reasoning branch -- no call-shape change needed. Intentionally unchanged: review/specialist models (review.py / specialist_review.py) and the benchmark baseline (oneshot_baseline.py, kept stable for comparison). CHANGELOG updated. 123 passed / 7 skipped (pytest cli/tests/); no regression. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the Kaizen CLI’s symmetric generation pipelines to use a newer default OpenAI model when --provider openai is selected and no explicit --model is provided.
Changes:
- Switch
DEFAULT_OPENAI_MODELfromgpt-4.1togpt-5.4indecompose_v2andrecompose_v2. - Add an
[Unreleased]changelog entry documenting the default-model change.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
cli/pipeline/recompose_v2.py |
Updates the OpenAI default model constant used by the recompose pipeline when --model is omitted. |
cli/pipeline/decompose_v2.py |
Updates the OpenAI default model constant used by the decompose pipeline when --model is omitted. |
CHANGELOG.md |
Documents the new default OpenAI model under [Unreleased] (note: now duplicates an existing [Unreleased] section later in the file). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+6
to
+10
| ## [Unreleased] | ||
|
|
||
| ### Changed | ||
|
|
||
| - Default OpenAI model for `decompose` / `recompose` generation is now `gpt-5.4` |
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.
Default OpenAI generation model ->
gpt-5.4Flip
DEFAULT_OPENAI_MODELfromgpt-4.1togpt-5.4for the decompose andrecompose generation pipelines (the OpenAI default when no
--modelis given).This ports the validated GPT-5.4 default from the Kaizen-3C staging repair-loop work
into the public CLI.
gpt-5.4was validated there as the strong, low-cost default(~3.3-5.7x cheaper than Sonnet with >= delta on the commit0 portfolio). Fully
overridable via
--model.Scope / safety
cli/pipeline/recompose_v2.py+cli/pipeline/decompose_v2.pyconstants change.gpt-5*reasoning-model API params (notemperature,max_completion_tokens)are already handled by the existing
is_reasoningbranch — no call-shape change.review.py,specialist_review.py)and the benchmark baseline (
oneshot_baseline.py, kept stable for comparison continuity).config.pydoes not shadow the constant (_ARGPARSE_DEFAULTS["model"]isNone).Caveat
gpt-5.4was validated for the staging repair loop, not separately benchmarked forthis one-shot decompose/recompose pipeline. It is a reasonable default modernization and
fully overridable; a paid end-to-end smoke (
kaizen recompose --provider openai) isrecommended before the next release.
Validation
pytest cli/tests/: 123 passed, 7 skipped (no regression).py_compileclean;is_reasoning("gpt-5.4")-> True (correct routing).CHANGELOG updated (
[Unreleased] / Changed); version bump left to the release process.🤖 Generated with Claude Code