React Native Firebase
    Preparing search index...

    Config options for content-related requests

    interface GenerationConfig {
        candidateCount?: number;
        frequencyPenalty?: number;
        imageConfig?: ImageConfig;
        maxOutputTokens?: number;
        presencePenalty?: number;
        responseJsonSchema?: { [key: string]: unknown };
        responseMimeType?: string;
        responseModalities?: ResponseModality[];
        responseSchema?: TypedSchema | SchemaRequest;
        stopSequences?: string[];
        temperature?: number;
        thinkingConfig?: ThinkingConfig;
        topK?: number;
        topP?: number;
    }
    Index

    Properties

    candidateCount?: number
    frequencyPenalty?: number
    imageConfig?: ImageConfig

    Configuration options for generating images with Gemini models.

    maxOutputTokens?: number
    presencePenalty?: number
    responseJsonSchema?: { [key: string]: unknown }

    Output schema of the generated response. This is an alternative to responseSchema that accepts JSON Schema.

    If set, responseSchema must be omitted, but responseMimeType is required and must be set to application/json.

    responseMimeType?: string

    Output response MIME type of the generated candidate text. Supported MIME types are text/plain (default, text output), application/json (JSON response in the candidates), and text/x.enum.

    responseModalities?: ResponseModality[]

    Generation modalities to be returned in generation responses.

    • Multimodal response generation is only supported by some Gemini models and versions; see model versions.
    • Only image generation (ResponseModality.IMAGE) is supported.
    responseSchema?: TypedSchema | SchemaRequest

    Output response schema of the generated candidate text. This value can be a class generated with a Schema static method like Schema.string() or Schema.object() or it can be a plain JS object matching the SchemaRequest interface.
    Note: This only applies when the specified responseMIMEType supports a schema; currently this is limited to application/json and text/x.enum.

    stopSequences?: string[]
    temperature?: number
    thinkingConfig?: ThinkingConfig

    Configuration for "thinking" behavior of compatible Gemini models.

    topK?: number
    topP?: number