Documentation
¶
Overview ¶
Package commitmsg builds the LLM prompt for a commit message and sanitizes the model's response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateOptions ¶
type GenerateOptions struct {
Model string
Locale string
Diff string
MaxLength int
Type string
Timeout time.Duration
CustomPrompt string
// Debug, when true, logs the diff being sent to the AI to stdout. The
// caller is responsible for deciding whether debug logging should be
// enabled (e.g. based on DEBUG/CSP_DEBUG env vars and headless mode).
Debug bool
}
GenerateOptions configures Generate.
Click to show internal directories.
Click to hide internal directories.