fix: restore Groq default model with bundled crush provider

openrouter/qwen/qwen3.6-27b is not resolvable in Crush; the qwen model
only exists on Groq. Re-apply the 735229b provider fix: default to
groq/openai/gpt-oss-120b (verified live on Groq /openai/v1/models) via
the bundled crush-provider config, applied through CRUSH_GLOBAL_CONFIG
only when the default model is in use.
This commit is contained in:
Prad Nukala
2026-08-18 14:32:41 -04:00
parent 3086dac5d6
commit 0acee0a694
4 changed files with 31 additions and 7 deletions
+4 -3
View File
@@ -16,9 +16,10 @@ gh extension install prdlk/gh-commit
### Requirements
- [uv](https://docs.astral.sh/uv) — Python package runner (handles dependencies automatically)
- [Crush](https://github.com/charmbracelet/crush) — configured with an authenticated model provider
- [Crush](https://github.com/charmbracelet/crush) — non-interactive AI runner
- `GROQ_API_KEY` — authenticates the default Groq model
By default, gh-commit uses `openrouter/qwen/qwen3.6-27b`. Configure OpenRouter in Crush or override the model with `GH_COMMIT_CRUSH_MODEL`.
By default, gh-commit uses Groq's `openai/gpt-oss-120b` via the bundled `crush-provider` config. Override the model with `GH_COMMIT_CRUSH_MODEL`.
## Usage
@@ -52,7 +53,7 @@ Flags: `--auto` (skip confirmations), `--push` (auto-push).
| `GH_COMMIT_PUSH=1` | Auto-push after commits |
| `GH_COMMIT_NO_AUTO_REFRESH=1` | Don't auto-regenerate scopes when `.gitignore` changes |
| `GH_COMMIT_CRUSH_CMD` | Override the Crush command (default `crush`) |
| `GH_COMMIT_CRUSH_MODEL` | Override the Crush model (default `openrouter/qwen/qwen3.6-27b`) |
| `GH_COMMIT_CRUSH_MODEL` | Override the Crush model (default `groq/openai/gpt-oss-120b`) |
| `GH_COMMIT_CRUSH_TIMEOUT` | Per-prompt timeout in seconds (default `120`) |
| `GH_COMMIT_DEBUG=1` | Show scope-response parse diagnostics |