Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,14 @@ Options:
--retry-attempts="…" Maximum number of retry attempts on retryable API errors (0 = unlimited retries) (default: 5) [$RETRY_ATTEMPTS]
--retry-delay="…" Delay between retry attempts (e.g. 1s, 500ms) (default: 1s) [$RETRY_DELAY]
--ai-provider="…", --ai="…" AI provider name (gemini|openai|openrouter|anthropic) (default: gemini) [$AI_PROVIDER]
--gemini-api-key="…", --ga="…" Gemini API key (https://bit.ly/4jZhiKI, as of February 2025 it's free) [$GEMINI_API_KEY]
--gemini-model-name="…", --gm="…" Gemini model name (https://bit.ly/4i02ARR) (default: gemini-2.0-flash) [$GEMINI_MODEL_NAME]
--openai-api-key="…", --oa="…" OpenAI API key (https://bit.ly/4i03NbR, you need to add funds to your account) [$OPENAI_API_KEY]
--openai-model-name="…", --om="…" OpenAI model name (https://bit.ly/4hXCXkL) (default: gpt-4o-mini) [$OPENAI_MODEL_NAME]
--openrouter-api-key="…", --ora="…" OpenRouter API key (https://bit.ly/4hU1yY1) [$OPENROUTER_API_KEY]
--openrouter-model-name="…", --orm="…" OpenRouter model name (https://bit.ly/4ktktuG) (default: nvidia/llama-3.1-nemotron-70b-instruct:free) [$OPENROUTER_MODEL_NAME]
--anthropic-api-key="…", --ana="…" Anthropic API key (https://bit.ly/4klw0Mw) [$ANTHROPIC_API_KEY]
--anthropic-model-name="…", --anm="…" Anthropic model name (https://bit.ly/4bmQDDV) (default: claude-3-7-sonnet-20250219) [$ANTHROPIC_MODEL_NAME]
--gemini-api-key="…", --ga="…" Gemini API key (https://aistudio.google.com/app/api-keys, as of February 2025 it's free) [$GEMINI_API_KEY]
--gemini-model-name="…", --gm="…" Gemini model name (https://ai.google.dev/gemini-api/docs/models) (default: gemini-2.5-flash) [$GEMINI_MODEL_NAME]
--openai-api-key="…", --oa="…" OpenAI API key (https://platform.openai.com/api-keys, you need to add funds to your account) [$OPENAI_API_KEY]
--openai-model-name="…", --om="…" OpenAI model name (https://developers.openai.com/api/docs/models) (default: gpt-4.1-nano) [$OPENAI_MODEL_NAME]
--openrouter-api-key="…", --ora="…" OpenRouter API key (https://openrouter.ai/workspaces/default/keys) [$OPENROUTER_API_KEY]
--openrouter-model-name="…", --orm="…" OpenRouter model name (https://openrouter.ai/models) (default: google/gemma-4-31b-it:free) [$OPENROUTER_MODEL_NAME]
--anthropic-api-key="…", --ana="…" Anthropic API key (https://platform.claude.com/settings/keys) [$ANTHROPIC_API_KEY]
--anthropic-model-name="…", --anm="…" Anthropic model name (https://platform.claude.com/docs/en/about-claude/models/overview) (default: claude-haiku-4-5-20251001) [$ANTHROPIC_MODEL_NAME]
--help, -h Show help
--version, -v Print the version
```
Expand Down
17 changes: 9 additions & 8 deletions describe-commit.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,41 @@ aiProvider: gemini

# Gemini provider configuration
gemini:
# Gemini API key (issue your own at https://bit.ly/4jZhiKI, as of February 2025 it's free)
# Gemini API key (issue your own at https://aistudio.google.com/app/api-keys, as of February 2025 it's free)
# @type {string}
apiKey: <gemini-api-key>

# Gemini model name (https://bit.ly/4i02ARR)
# Gemini model name (https://ai.google.dev/gemini-api/docs/models)
# @type {string}
#modelName: <gemini-model-name>

# OpenAI provider configuration
openai:
# OpenAI API key (issue your own at https://bit.ly/4i03NbR, you need to add funds to your account to access the API)
# OpenAI API key (issue your own at https://platform.openai.com/api-keys, you need to add funds to your account to
# access the API)
# @type {string}
apiKey: <openai-api-key>

# OpenAI model name (https://bit.ly/4hXCXkL)
# OpenAI model name (https://developers.openai.com/api/docs/models)
# @type {string}
#modelName: <openai-model-name>

# OpenRouter provider configuration
openrouter:
# OpenRouter API key (issue your own at https://bit.ly/4hU1yY1)
# OpenRouter API key (issue your own at https://openrouter.ai/workspaces/default/keys)
# @type {string}
apiKey: <openrouter-api-key>

# OpenAI model name (https://bit.ly/4ktktuG)
# OpenAI model name (https://openrouter.ai/models?order=pricing-low-to-high)
# @type {string}
#modelName: <openrouter-model-name>

# Anthropic provider configuration
anthropic:
# Anthropic API key (issue your own at https://bit.ly/4klw0Mw, you need to add funds to your account)
# Anthropic API key (issue your own at https://platform.claude.com/settings/keys, you need to add funds to your account)
# @type {string}
apiKey: <anthropic-api-key>

# Anthropic model name (https://bit.ly/4bmQDDV)
# Anthropic model name (https://platform.claude.com/docs/en/about-claude/models/overview)
# @type {string}
#modelName: <anthropic-model-name>
16 changes: 8 additions & 8 deletions internal/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,49 +102,49 @@ func NewApp(name string) *App { //nolint:funlen
}
geminiApiKey = cmd.Flag[string]{
Names: []string{"gemini-api-key", "ga"},
Usage: "Gemini API key (https://bit.ly/4jZhiKI, as of February 2025 it's free)",
Usage: "Gemini API key (https://aistudio.google.com/app/api-keys, as of February 2025 it's free)",
EnvVars: []string{"GEMINI_API_KEY"},
Default: app.opt.Providers.Gemini.ApiKey,
}
geminiModelName = cmd.Flag[string]{
Names: []string{"gemini-model-name", "gm"},
Usage: "Gemini model name (https://bit.ly/4i02ARR)",
Usage: "Gemini model name (https://ai.google.dev/gemini-api/docs/models)",
EnvVars: []string{"GEMINI_MODEL_NAME"},
Default: app.opt.Providers.Gemini.ModelName,
}
openAIApiKey = cmd.Flag[string]{
Names: []string{"openai-api-key", "oa"},
Usage: "OpenAI API key (https://bit.ly/4i03NbR, you need to add funds to your account)",
Usage: "OpenAI API key (https://platform.openai.com/api-keys, you need to add funds to your account)",
EnvVars: []string{"OPENAI_API_KEY"},
Default: app.opt.Providers.OpenAI.ApiKey,
}
openAIModelName = cmd.Flag[string]{
Names: []string{"openai-model-name", "om"},
Usage: "OpenAI model name (https://bit.ly/4hXCXkL)",
Usage: "OpenAI model name (https://developers.openai.com/api/docs/models)",
EnvVars: []string{"OPENAI_MODEL_NAME"},
Default: app.opt.Providers.OpenAI.ModelName,
}
openRouterApiKey = cmd.Flag[string]{
Names: []string{"openrouter-api-key", "ora"},
Usage: "OpenRouter API key (https://bit.ly/4hU1yY1)",
Usage: "OpenRouter API key (https://openrouter.ai/workspaces/default/keys)",
EnvVars: []string{"OPENROUTER_API_KEY"},
Default: app.opt.Providers.OpenRouter.ApiKey,
}
openRouterModelName = cmd.Flag[string]{
Names: []string{"openrouter-model-name", "orm"},
Usage: "OpenRouter model name (https://bit.ly/4ktktuG)",
Usage: "OpenRouter model name (https://openrouter.ai/models)",
EnvVars: []string{"OPENROUTER_MODEL_NAME"},
Default: app.opt.Providers.OpenRouter.ModelName,
}
anthropicApiKey = cmd.Flag[string]{
Names: []string{"anthropic-api-key", "ana"},
Usage: "Anthropic API key (https://bit.ly/4klw0Mw)",
Usage: "Anthropic API key (https://platform.claude.com/settings/keys)",
EnvVars: []string{"ANTHROPIC_API_KEY"},
Default: app.opt.Providers.Anthropic.ApiKey,
}
anthropicModelName = cmd.Flag[string]{
Names: []string{"anthropic-model-name", "anm"},
Usage: "Anthropic model name (https://bit.ly/4bmQDDV)",
Usage: "Anthropic model name (https://platform.claude.com/docs/en/about-claude/models/overview)",
EnvVars: []string{"ANTHROPIC_MODEL_NAME"},
Default: app.opt.Providers.Anthropic.ModelName,
}
Expand Down
12 changes: 8 additions & 4 deletions internal/cli/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ func newOptionsWithDefaults() options {
AIProviderName: ai.ProviderGemini, // due to its free
}

opt.Providers.Gemini.ModelName = "gemini-2.0-flash"
opt.Providers.OpenAI.ModelName = "gpt-4o-mini"
opt.Providers.OpenRouter.ModelName = "nvidia/llama-3.1-nemotron-70b-instruct:free"
opt.Providers.Anthropic.ModelName = "claude-3-7-sonnet-20250219"
// https://ai.google.dev/gemini-api/docs/models
opt.Providers.Gemini.ModelName = "gemini-2.5-flash"
// https://developers.openai.com/api/docs/models
opt.Providers.OpenAI.ModelName = "gpt-4.1-nano"
// https://openrouter.ai/api/v1/models
opt.Providers.OpenRouter.ModelName = "google/gemma-4-31b-it:free"
// https://platform.claude.com/docs/en/about-claude/models/overview
opt.Providers.Anthropic.ModelName = "claude-haiku-4-5-20251001"

return opt
}
Expand Down