Versions in this module Expand all Collapse all v1 v1.2.0 May 1, 2026 Changes in this version + const SystemPrompt + func BuildPrompt(content, extraContext string, isStat bool) string + func GenerateCommitMessage(ctx context.Context, diff DiffResult, extraContext string, p Provider) (string, error) + type DiffResult struct + Content string + IsStat bool + func GetStagedDiff(ctx context.Context) (DiffResult, error) + type Provider interface + Generate func(ctx context.Context, prompt string) (string, error) + func NewProvider(cfg ProviderConfig) (Provider, error) + func NewProviderFromEntry(entry config.CommitGenEntry) (Provider, error) + type ProviderConfig struct + APIKey string + Host string + Model string + Provider string v1.1.1 Apr 23, 2026