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-pro
parameters Non-dynamicAbstractGenerativeAi-ModelParameter
Default
{
"temperature": 0.2,
"maxOutputTokens": 128,
"topK": 40,
"topP": 0.95
}
projectId string
scopes array
SubType string
Default
["https://www.googleapis.com/auth/cloud-platform"]
serviceAccount string
Definitions
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Prediction
citationMetadata AbstractGenerativeAi-CitationMetadata
content string
safetyAttributes AbstractGenerativeAi-SafetyAttributes
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-SafetyAttributes
blocked boolean
categories array
SubType string
scores array
SubType number
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-ModelParameter
maxOutputTokens integer
Default
128
Minimum
>= 1
Maximum
<= 1024
temperature number
Default
0.2
Minimum
>
Maximum
<= 1
topK integer
Default
40
Minimum
>= 1
Maximum
<= 40
topP number
Default
0.95
Minimum
>
Maximum
<= 1
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Citation
citations array
SubType string