Repository navigation
feat(models): replace retired default models and fix commitlint - #617
Merged
Merged
Conversation
Pass the --context text to the commitlint prompt. Use the built-in example when the generated file has no example for the current language. Read and write .opencommit-commitlint in the repository root, so that subdirectories share one file. Generate the file with the configuration of the current run. Describe the scope-enum rule as a scope rule.
…ters Use gpt-6-luna for OpenAI and OpenRouter and gemini-3.5-flash-lite for Gemini. Remove retired models from the fallback lists. Replace the old saved OpenAI default, because OpenAI shuts it down on 2027-01-14. Send the output parameters that current OpenAI and Claude models accept.
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.
Why
OpenAI shuts down
gpt-4o-mini, our default model, on 2027-01-14. Several other models in our fallback lists are already gone. Newer OpenAI and Claude models also reject parameters that we send. Refs #615.Models
gpt-6-luna(OpenAI),openai/gpt-6-luna(OpenRouter) andgemini-3.5-flash-lite(Gemini).gpt-4o-miniwithgpt-6-luna. OpenCommit up to 3.2 saved its default model in every new config. The migration changes only configs that use OpenAI with the default API URL. Other endpoints can still serve the old model.gpt-6-lunaandgpt-6.1-terrareason by default. OpenCommit now sendsreasoning_effort: "none"andmax_completion_tokensto them, so the message fits in the output limit.OCO_REASONING=truestill turns reasoning on. Othergpt-5and newer models are treated as reasoning models.commitlint
--contexttext is now part of the@commitlintprompt..opencommit-commitlintis always in the repository root. Before, each subdirectory got its own file.scope-enumrule now describes the scope, not the type.oco commitlint forceafter you change the rules or the language.Checks
Run locally on Node 24: lint, format check, 323 unit tests, the smoke, core and prompt-module e2e suites. No request was sent to a real provider.
🤖 Generated with Claude Code