feat: add configurable model for git text generation#1171
Merged
juliusmarminge merged 7 commits intopingdotgg:mainfrom Mar 17, 2026
Merged
feat: add configurable model for git text generation#1171juliusmarminge merged 7 commits intopingdotgg:mainfrom
juliusmarminge merged 7 commits intopingdotgg:mainfrom
Conversation
- Add gitTextGenerationModel setting to AppSettingsSchema with gpt-5.4-mini as default - Add UI in settings page to select git text generation model - Propagate model parameter from settings through to CodexTextGeneration layer - Add DEFAULT_GIT_TEXT_GENERATION_MODEL constant (gpt-5.4-mini) - Add gpt-5.4-mini to MODEL_OPTIONS_BY_PROVIDER.codex
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4 tasks
- Build git text generation model options via `getAppModelOptions` - Show the selected model's display name in the select trigger - Improve settings row layout for better responsiveness
Member
|
5.4 mini feels so much better jesus! |
Closed
2 tasks
4 tasks
ashvinnihalani
referenced
this pull request
in ashvinnihalani/t3code
Mar 19, 2026
Co-authored-by: Julius Marminge <julius0216@outlook.com>
ashvinnihalani
referenced
this pull request
in ashvinnihalani/t3code
Mar 19, 2026
Co-authored-by: Julius Marminge <julius0216@outlook.com>
gabrielMalonso
pushed a commit
to gabrielMalonso/t3code
that referenced
this pull request
Mar 19, 2026
Co-authored-by: Julius Marminge <julius0216@outlook.com>
apexsloth
pushed a commit
to apexslothforks/t3code
that referenced
this pull request
Mar 26, 2026
Co-authored-by: Julius Marminge <julius0216@outlook.com>
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.
What Changed
Added a configurable model setting for git text generation (commit messages, PR descriptions, branch names). Previously, git text generation used a hardcoded default. Now users can select a specific model in settings.
Changes:
packages/contracts/src/model.ts: Addedgpt-5.4-minito model options and exportedDEFAULT_GIT_TEXT_GENERATION_MODELpackages/shared/src/model.ts: Re-exported the default model constantpackages/contracts/src/git.ts: Added optionalmodelfield toGitRunStackedActionInputapps/web/src/appSettings.ts: AddedgitTextGenerationModelfield to settings schemaapps/web/src/routes/_chat.settings.tsx: Added UI dropdown for model selection with "Restore default" buttonapps/web/src/lib/gitReactQuery.ts: Pass model from settings to stacked action mutationapps/web/src/components/GitActionsControl.tsx: Wire model through to mutationsapps/server/src/git/Services/TextGeneration.ts: Accept optional model parameter on text generation methodsapps/server/src/git/Layers/CodexTextGeneration.ts: Use provided model with fallback to defaultapps/server/src/git/Layers/GitManager.ts: Pass model through git text generation pipelineapps/server/src/orchestration/Layers/ProviderCommandReactor.ts: Use default for branch name generationWhy
#1165
Users running expensive reasoning models (e.g., gpt-5.2) as their main chat model shouldn't have those same heavy models used for quick git operations like generating commit messages. This decouples the chat model from the git text generation model, allowing faster/cheaper models for routine git operations while keeping the powerful model for complex conversations.
The default is set to
gpt-5.4-minias a lightweight, cost-effective option that's still capable of writing good commit messages and PR descriptions.UI Changes
Added a new "Git Text Generation Model" setting in the Settings page with:
Checklist
Note
Add configurable model selection for git text generation
DEFAULT_GIT_TEXT_GENERATION_MODEL(gpt-5.4-mini) in model.ts and threads an optionalmodelparameter through the full git text generation pipeline (commit messages, PR content, branch names).textGenerationModelfield toAppSettingsSchemaand a new "Git" section in the settings UI (_chat.settings.tsx) so users can select and persist their preferred model.GitActionsControlthroughgitRunStackedActionMutationOptionsto therunStackedActionAPI endpoint, which now acceptstextGenerationModelin its contract input schema.gpt-5.4-minito the Codex provider model options list.Macroscope summarized bea44b5.
2026-03-17.22-38-48.mov