Skip to content

feat(models): replace retired default models and fix commitlint - #617

Merged
di-sukharev merged 2 commits into
masterfrom
fix/models-and-commitlint
Nov 30, 2026
Merged

di-sukharev merged 2 commits into
masterfrom
fix/models-and-commitlint

Conversation

@di-sukharev

Copy link
Copy Markdown
Owner

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

  • The new default models are gpt-6-luna (OpenAI), openai/gpt-6-luna (OpenRouter) and gemini-3.5-flash-lite (Gemini).
  • Migration 04 replaces a saved gpt-4o-mini with gpt-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-luna and gpt-6.1-terra reason by default. OpenCommit now sends reasoning_effort: "none" and max_completion_tokens to them, so the message fits in the output limit. OCO_REASONING=true still turns reasoning on. Other gpt-5 and newer models are treated as reasoning models.
  • Claude 4.7 and newer models no longer get sampling parameters. OpenCommit turns thinking off where the model allows it. Models that always think get a larger output limit and low effort. Older and custom models get the same request as before.

commitlint

  • The --context text is now part of the @commitlint prompt.
  • After a language change, OpenCommit uses the built-in example for the new language. Before, it crashed.
  • .opencommit-commitlint is always in the repository root. Before, each subdirectory got its own file.
  • The scope-enum rule now describes the scope, not the type.
  • The README no longer says that the file updates automatically. Run oco commitlint force after 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

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.
@di-sukharev
di-sukharev merged commit f9b6a7f into master Nov 30, 2026
5 checks passed
@di-sukharev
di-sukharev deleted the fix/models-and-commitlint branch December 1, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant