diff --git a/README.md b/README.md index 2fdaf11..7d48cf8 100644 --- a/README.md +++ b/README.md @@ -93,9 +93,11 @@ $ curl -fsSL https://commit.jaw.dev/ | bash The configuration path follows `$XDG_CONFIG_HOME` when set and defaults to `~/.config/commit/config.json`. Set `COMMIT_CONFIG` to use another path. The -default model is `google/gemini-2.5-flash-lite`. Pass a model ID exactly as -OpenRouter displays it, for example `openrouter/auto`. Diffs larger than 1 MiB -are rejected before an API request is made. +default model is `openrouter/free`, which randomly selects an available free +model. Free models have lower rate limits and may be less consistent. Pass a +model ID exactly as OpenRouter displays it, for example `openrouter/auto`, to +override the default. Diffs larger than 1 MiB are rejected before an API request +is made. # Docs diff --git a/assets/sh/commit.sh b/assets/sh/commit.sh index 63a4e21..c19b738 100755 --- a/assets/sh/commit.sh +++ b/assets/sh/commit.sh @@ -129,7 +129,7 @@ show_help() { printf " ${GREEN}%s${NC}\n" "$CONFIG_FILE" printf " Environment: OPENROUTER_API_KEY, COMMIT_MODEL\n" printf " Model IDs: https://openrouter.ai/models\n" - printf " Default model: google/gemini-2.5-flash-lite\n" + printf " Default model: openrouter/free\n" printf " Maximum diff size: 1 MiB\n" printf "\n" printf "${YELLOW}Example Usage:${NC}\n" @@ -238,7 +238,7 @@ setup_config() { } configure_openrouter() { - AI_MODEL="${AI_MODEL:-${COMMIT_MODEL:-google/gemini-2.5-flash-lite}}" + AI_MODEL="${AI_MODEL:-${COMMIT_MODEL:-openrouter/free}}" if [ -z "$API_KEY" ]; then API_KEY="${OPENROUTER_API_KEY:-$CONFIG_API_KEY}" fi diff --git a/assets/templates/index.html b/assets/templates/index.html index ac2dd97..72632c4 100644 --- a/assets/templates/index.html +++ b/assets/templates/index.html @@ -66,7 +66,10 @@
The default model is google/gemini-2.5-flash-lite.
+ The default is openrouter/free, which randomly selects an available free model.
+ Free models have lower rate limits and may be less consistent.
+