Cluster Nodes
sub-nodes
Google Vertex Chat Model node documentation

Google Vertex Chat Model node

Use the Google Vertex AI Chat Model node to use Google's Vertex AI chat models with conversational agents.

On this page, you'll find the node parameters for the Google Vertex AI Chat Model node, and links to more resources.

Credentials: You can find authentication information for this node here.

Node parameters

  • Project ID: Select the project ID from your Google Cloud account to use. n8n dynamically loads projects from the Google Cloud account, but you can also enter it manually.
  • Model Name: Select the name of the model to use to generate the completion, for example gemini-1.5-flash-001, gemini-1.5-pro-001, etc. Refer to Google models (opens in a new tab) for a list of available models.

Node options

  • Maximum Number of Tokens: Enter the maximum number of tokens used, which sets the completion length.
  • Sampling Temperature: Use this option to control the randomness of the sampling process. A higher temperature creates more diverse sampling, but increases the risk of hallucinations.
  • Thinking Budget: Controls reasoning tokens for thinking models. Set to 0 to disable automatic thinking. Set to -1 for dynamic thinking. Leave empty for auto mode.
  • Top K: Enter the number of token choices the model uses to generate the next token.
  • Top P: Use this option to set the probability the completion should use. Use a lower value to ignore less probable options.
  • Safety Settings: Gemini supports adjustable safety settings. Refer to Google's Gemini API safety settings (opens in a new tab) for information on the available filters and levels.

Related resources

Refer to LangChain's Google Vertex AI documentation (opens in a new tab) for more information about the service.