Back to Firebase Js Sdk

GoogleAIBackend class

docs-devsite/ai.googleaibackend.md

12.12.11.1 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

GoogleAIBackend class

Configuration class for the Gemini Developer API.

Use this with AIOptions when initializing the AI service via getAI() to specify the Gemini Developer API as the backend.

<b>Signature:</b>

typescript
export declare class GoogleAIBackend extends Backend 

<b>Extends:</b> Backend

Constructors

ConstructorModifiersDescription
(constructor)()Creates a configuration object for the Gemini Developer API backend.

GoogleAIBackend.(constructor)

Creates a configuration object for the Gemini Developer API backend.

<b>Signature:</b>

typescript
constructor();