View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ComputeTokensRequest (google_api_ai_platform v0.13.0)
Request message for ComputeTokens RPC call.
Attributes
-
contents
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t)
, default:nil
) - Optional. Input content. -
instances
(type:list(any())
, default:nil
) - Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models. -
model
(type:String.t
, default:nil
) - Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers//models/
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ComputeTokensRequest{ contents: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()] | nil, instances: [any()] | nil, model: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.