Vercel AI Gateway Chat Model
Last updated
Was this helpful?
Use the Vercel AI Gateway Chat Model node to use AI Gateway chat models with conversational agents.
On this page, you'll find the node parameters for the Vercel AI Gateway Chat Model node and links to more resources.
Credentials
You can find authentication information for this node here.
Parameter resolution in sub-nodes
Sub-nodes behave differently to other nodes when processing multiple items using an expression.
Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.
In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.
Select the model to use to generate the completion.
n8n dynamically loads models from the AI Gateway and you'll only see the models available to your account.
Use these options to further refine the node's behavior.
Use this option to control the chance of the model repeating itself. Higher values reduce the chance of the model repeating itself.
Enter the maximum number of tokens used, which sets the completion length.
Choose Text or JSON. JSON ensures the model returns valid JSON.
Use this option to control the chance of the model talking about new topics. Higher values increase the chance of the model talking about new topics.
Use this option to control the randomness of the sampling process. A higher temperature creates more diverse sampling, but increases the risk of hallucinations.
Enter the maximum request time in milliseconds.
Enter the maximum number of times to retry a request.
Use this option to set the probability the completion should use. Use a lower value to ignore less probable options.
Browse Vercel AI Gateway Chat Model node documentation integration templates or search all templates
As the Vercel AI Gateway is API-compatible with OpenAI, you can refer to LangChains's OpenAI documentation for more information about the service.
View n8n's Advanced AI documentation.
Last updated
Was this helpful?
Was this helpful?