React Native Firebase
    Preparing search index...

    Class TemplateGenerativeModelBeta

    GenerativeModel APIs that execute on a server-side template.

    This class should only be instantiated with getTemplateGenerativeModel.

    Index

    Methods

    • Beta

      Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response.

      Parameters

      • templateId: string

        The ID of the server-side template to execute.

      • templateVariables: object

        A key-value map of variables to populate the template with.

      Returns Promise<GenerateContentStreamResult>

    Properties

    _apiSettings: ApiSettings
    requestOptions?: RequestOptions

    Additional options to use when making requests.