Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1GenerationConfig

import type { GoogleCloudAiplatformV1GenerationConfig } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

Generation config.

interface GoogleCloudAiplatformV1GenerationConfig {
audioTimestamp?: boolean;
candidateCount?: number;
enableAffectiveDialog?: boolean;
frequencyPenalty?: number;
logprobs?: number;
maxOutputTokens?: number;
mediaResolution?:
| "MEDIA_RESOLUTION_UNSPECIFIED"
| "MEDIA_RESOLUTION_LOW"
| "MEDIA_RESOLUTION_MEDIUM"
| "MEDIA_RESOLUTION_HIGH";
presencePenalty?: number;
responseJsonSchema?: any;
responseLogprobs?: boolean;
responseMimeType?: string;
responseModalities?:
| "MODALITY_UNSPECIFIED"
| "TEXT"
| "IMAGE"
| "AUDIO"[];
seed?: number;
stopSequences?: string[];
temperature?: number;
topK?: number;
topP?: number;
}

§Properties

§
audioTimestamp?: boolean
[src]

Optional. If enabled, audio timestamp will be included in the request to the model.

§
candidateCount?: number
[src]

Optional. Number of candidates to generate.

§
enableAffectiveDialog?: boolean
[src]

Optional. If enabled, the model will detect emotions and adapt its responses accordingly.

§
frequencyPenalty?: number
[src]

Optional. Frequency penalties.

§
logprobs?: number
[src]

Optional. Logit probabilities.

§
maxOutputTokens?: number
[src]

Optional. The maximum number of output tokens to generate per message.

§
mediaResolution?: "MEDIA_RESOLUTION_UNSPECIFIED" | "MEDIA_RESOLUTION_LOW" | "MEDIA_RESOLUTION_MEDIUM" | "MEDIA_RESOLUTION_HIGH"
[src]

Optional. If specified, the media resolution specified will be used.

§
presencePenalty?: number
[src]

Optional. Positive penalties.

§
responseJsonSchema?: any
[src]

Optional. Output schema of the generated response. This is an alternative to response_schema that accepts JSON Schema. If set, response_schema must be omitted, but response_mime_type is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - $id - $defs - $ref - $anchor - type - format - title - description - enum (for strings and numbers) - items - prefixItems

  • minItems - maxItems - minimum - maximum - anyOf - oneOf (interpreted the same as anyOf) - properties - additionalProperties - required The non-standard propertyOrdering property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If $ref is set on a sub-schema, no other properties, except for than those starting as a $, may be set.
§
responseLogprobs?: boolean
[src]

Optional. If true, export the logprobs results in response.

§
responseMimeType?: string
[src]

Optional. Output response mimetype of the generated candidate text. Supported mimetype: - text/plain: (default) Text output. - application/json: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.

§
responseModalities?: "MODALITY_UNSPECIFIED" | "TEXT" | "IMAGE" | "AUDIO"[]
[src]

Optional. The modalities of the response.

§

Optional. The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object. If set, a compatible response_mime_type must also be set. Compatible mimetypes: application/json: Schema for JSON response.

§

Optional. Routing configuration.

§
seed?: number
[src]

Optional. Seed.

§

Optional. The speech generation config.

§
stopSequences?: string[]
[src]

Optional. Stop sequences.

§
temperature?: number
[src]

Optional. Controls the randomness of predictions.

§

Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.

§
topK?: number
[src]

Optional. If specified, top-k sampling will be used.

§
topP?: number
[src]

Optional. If specified, nucleus sampling will be used.