ByteChef LogoByteChef

Vertex AI Gemini

Vertex AI is a fully-managed, unified AI development platform for building and using generative AI.

Categories: Artificial Intelligence

Type: vertexGemini/v1


Connections

Version: 1

Bearer Token

Properties

NameLabelTypeDescriptionRequired
projectIdProject IdSTRINGGoogle Cloud Platform project IDtrue
locationLocationSTRING
Options asia-east1, asia-east2, asia-northeast1, asia-northeast3, asia-south1, asia-southeast1, australia-southeast1, europe-central2, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west6, europe-west8, europe-west9, me-central1, me-central2, me-west1, northamerica-northeast1, southamerica-east1, us-central1, us-east1, us-east4, us-east5, us-south1, us-west1, us-west4
Regiontrue

Actions

Ask Gemini

Name: ask

Ask anything you want.

Properties

NameLabelTypeDescriptionRequired
modelModelSTRING
Options gemini-1.5-flash-002, gemini-1.5-pro-002, gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-flash-preview-04-17, gemini-2.5-pro-preview-05-06
ID of the model to use.true
formatFormatSTRING
Options SIMPLE, ADVANCED
Format of providing the prompt to the model.true
userPromptPromptSTRINGUser prompt to the model.true
systemPromptSystem PromptSTRINGSystem prompt to the model.false
attachmentsAttachmentsARRAY
Items [FILE_ENTRY]
Only text and image files are supported. Also, only certain models supports images. Please check the documentation.false
messagesMessagesARRAY
Items [{STRING(role), STRING(content), [FILE_ENTRY](attachments)}]
A list of messages comprising the conversation so far.true
responseResponseOBJECT
Properties {STRING(responseFormat), STRING(responseSchema)}
The response from the API.true
maxTokensMax TokensINTEGERThe maximum number of tokens to generate in the chat completion.false
nCandidate CountINTEGERThe number of generated response messages to return. This value must be between [1, 8], inclusive. Defaults to 1.false
temperatureTemperatureNUMBERControls randomness: Higher values will make the output more random, while lower values like will make it more focused and deterministic.false
topPTop PNUMBERAn alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.false
topKTop KINTEGERSpecify the number of token choices the generative uses to generate the next token.false
stopStopARRAY
Items [STRING]
Up to 4 sequences where the API will stop generating further tokens.false

Example JSON Structure

{
  "label" : "Ask Gemini",
  "name" : "ask",
  "parameters" : {
    "model" : "",
    "format" : "",
    "userPrompt" : "",
    "systemPrompt" : "",
    "attachments" : [ {
      "extension" : "",
      "mimeType" : "",
      "name" : "",
      "url" : ""
    } ],
    "messages" : [ {
      "role" : "",
      "content" : "",
      "attachments" : [ {
        "extension" : "",
        "mimeType" : "",
        "name" : "",
        "url" : ""
      } ]
    } ],
    "response" : {
      "responseFormat" : "",
      "responseSchema" : ""
    },
    "maxTokens" : 1,
    "n" : 1,
    "temperature" : 0.0,
    "topP" : 0.0,
    "topK" : 1,
    "stop" : [ "" ]
  },
  "type" : "vertexGemini/v1/ask"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

How is this guide?

Last updated on

On this page