OptionalabortAbort signal forwarded to the model call.
OptionaldescriptionOptionalgenerateInject a generateText implementation. Defaults to the AI SDK's, loaded
lazily so importing this module never requires the ai package to resolve
a model or read credentials until a generation actually runs.
OptionalguidanceOptional extra guidance from the user, woven into the system prompt.
OptionalincludeInclude the shaped diff (changes.diff) in the prompt. Default true.
OptionalmaxSoft cap on commits rendered into the prompt. Default 120.
OptionalmaxSoft cap on changed-file lines rendered. Default 60.
OptionalmaxOutput token cap. Default 2048.
OptionalmodelModel id, e.g. "anthropic/claude-sonnet-4.5". Defaults to DEFAULT_MODEL.
OptionalprojectOptional project name to anchor the writing.
OptionaltemperatureSampling temperature. Default 0.4 — factual, lightly varied.
OptionaltitleOptional PR title/description when the source is a pull request.
Options for generatePost.