View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig (google_api_ai_platform v0.13.0)

Generation config.

Attributes

  • candidateCount (type: integer(), default: nil) - Optional. Number of candidates to generate.
  • frequencyPenalty (type: number(), default: nil) - Optional. Frequency penalties.
  • maxOutputTokens (type: integer(), default: nil) - Optional. The maximum number of output tokens to generate per message.
  • presencePenalty (type: number(), default: nil) - Optional. Positive penalties.
  • responseMimeType (type: String.t, default: nil) - 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.
  • responseSchema (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t, default: nil) - 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.
  • routingConfig (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t, default: nil) - Optional. Routing configuration.
  • seed (type: integer(), default: nil) - Optional. Seed.
  • stopSequences (type: list(String.t), default: nil) - Optional. Stop sequences.
  • temperature (type: number(), default: nil) - Optional. Controls the randomness of predictions.
  • topK (type: number(), default: nil) - Optional. If specified, top-k sampling will be used.
  • topP (type: number(), default: nil) - Optional. If specified, nucleus sampling will be used.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig{
  candidateCount: integer() | nil,
  frequencyPenalty: number() | nil,
  maxOutputTokens: integer() | nil,
  presencePenalty: number() | nil,
  responseMimeType: String.t() | nil,
  responseSchema:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t() | nil,
  routingConfig:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t()
    | nil,
  seed: integer() | nil,
  stopSequences: [String.t()] | nil,
  temperature: number() | nil,
  topK: number() | nil,
  topP: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.