repo2post - v0.1.1
    Preparing search index...

    Interface GenerateOptions

    Options for generatePost.

    interface GenerateOptions {
        abortSignal?: AbortSignal;
        description?: string;
        generateText?: GenerateTextFn;
        guidance?: string;
        includeDiff?: boolean;
        maxCommits?: number;
        maxFiles?: number;
        maxOutputTokens?: number;
        model?: string;
        project?: string;
        temperature?: number;
        title?: string;
    }

    Hierarchy

    Index

    Properties

    abortSignal?: AbortSignal

    Abort signal forwarded to the model call.

    description?: string
    generateText?: GenerateTextFn

    Inject 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.

    guidance?: string

    Optional extra guidance from the user, woven into the system prompt.

    includeDiff?: boolean

    Include the shaped diff (changes.diff) in the prompt. Default true.

    maxCommits?: number

    Soft cap on commits rendered into the prompt. Default 120.

    maxFiles?: number

    Soft cap on changed-file lines rendered. Default 60.

    maxOutputTokens?: number

    Output token cap. Default 2048.

    model?: string

    Model id, e.g. "anthropic/claude-sonnet-4.5". Defaults to DEFAULT_MODEL.

    project?: string

    Optional project name to anchor the writing.

    temperature?: number

    Sampling temperature. Default 0.4 — factual, lightly varied.

    title?: string

    Optional PR title/description when the source is a pull request.