MultimodalCompletion
MultimodalCompletion
yaml
type: "io.kestra.plugin.gcp.vertexai.MultimodalCompletion"Examples
yaml
id: gcp_vertexai_multimodal_completion
namespace: company.team
tasks:
- id: multimodal_completion
type: io.kestra.plugin.gcp.vertexai.MultimodalCompletion
region: us-central1
projectId: my-project
contents:
- content: Please tell me a joke
yaml
id: gcp_vertexai_multimodal_completion
namespace: company.team
inputs:
- id: image
type: FILE
tasks:
- id: multimodal_completion
type: io.kestra.plugin.gcp.vertexai.MultimodalCompletion
region: us-central1
projectId: my-project
contents:
- content: Can you describe this image?
- mimeType: image/jpeg
content: "{{ inputs.image }}"
Properties
contents *Requiredarray
Min items
1 Definitions
io.kestra.plugin.gcp.vertexai.MultimodalCompletion-Content
content*Requiredstring
mimeTypestring
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
blocked boolean
Default
falsefinishReason string
safetyRatings array
Definitions
io.kestra.plugin.gcp.vertexai.MultimodalCompletion-SafetyRating
blockedboolean
categorystring
probabilitystring
text string
Metrics
candidate.token.count counter
prompt.token.count counter
serialized.size counter
Unit
bytes