TextCompletion
TextCompletion
yaml
type: "io.kestra.plugin.gcp.vertexai.TextCompletion"Examples
yaml
id: gcp_vertexai_text_completion
namespace: company.team
tasks:
- id: text_completion
type: io.kestra.plugin.gcp.vertexai.TextCompletion
region: us-central1
projectId: my-project
prompt: Please tell me a joke
Properties
prompt *Requiredstring
region *Requiredstring
impersonatedServiceAccount string
modelId string
Default
gemini-proparameters Non-dynamic
Default
{
"temperature": 0.2,
"maxOutputTokens": 128,
"topK": 40,
"topP": 0.95
} Definitions
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-ModelParameter
maxOutputTokensinteger
Default
128Minimum
>= 1Maximum
<= 1024temperaturenumber
Default
0.2Minimum
> Maximum
<= 1topKinteger
Default
40Minimum
>= 1Maximum
<= 40topPnumber
Default
0.95Minimum
> Maximum
<= 1projectId string
scopes array
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]serviceAccount string
Outputs
predictions array
Definitions
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Prediction
citationMetadata
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-CitationMetadata
citationsarray
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Citation
citationsarray
SubTypestring
contentstring
safetyAttributes
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-SafetyAttributes
blockedboolean
categoriesarray
SubTypestring
scoresarray
SubTypenumber
Metrics
candidate.token.count counter
prompt.token.count counter
serialized.size counter
Unit
bytes