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 %}
Config options for content-related requests
Signature:
export interface GenerationConfig
Property | Type | Description |
---|---|---|
candidateCount | number | |
frequencyPenalty | number | |
maxOutputTokens | number | |
presencePenalty | number | |
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 . |
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 | |
topK | number | |
topP | number |
Signature:
candidateCount?: number;
Signature:
frequencyPenalty?: number;
Signature:
maxOutputTokens?: number;
Signature:
presencePenalty?: number;
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
.
Signature:
responseMimeType?: string;
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
.
Signature:
responseSchema?: TypedSchema | SchemaRequest;
Signature:
stopSequences?: string[];
Signature:
temperature?: number;
Signature:
topK?: number;
Signature:
topP?: number;