mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
Add Vercel AI Gateway model node (#3390)
Co-authored-by: Justin Ellingwood <justin.ellingwood@gmail.com>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
---
|
||||
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
|
||||
title: Vercel AI Gateway Chat Model node documentation
|
||||
description: Learn how to use the Vercel AI Gateway Chat Model node in n8n. Follow technical documentation to integrate Vercel AI Gateway Chat Model node into your workflows.
|
||||
contentType: [integration, reference]
|
||||
priority: high
|
||||
---
|
||||
|
||||
# Vercel AI Gateway Chat Model node
|
||||
|
||||
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.
|
||||
|
||||
/// note | Credentials
|
||||
You can find authentication information for this node [here](/integrations/builtin/credentials/vercel.md).
|
||||
///
|
||||
|
||||
--8<-- "_snippets/integrations/builtin/cluster-nodes/sub-node-expression-resolution.md"
|
||||
|
||||
## Node parameters
|
||||
|
||||
### Model
|
||||
|
||||
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.
|
||||
|
||||
## Node options
|
||||
|
||||
Use these options to further refine the node's behavior.
|
||||
|
||||
### Frequency Penalty
|
||||
|
||||
Use this option to control the chance of the model repeating itself. Higher values reduce the chance of the model repeating itself.
|
||||
|
||||
### Maximum Number of Tokens
|
||||
|
||||
Enter the maximum number of tokens used, which sets the completion length.
|
||||
|
||||
### Response Format
|
||||
|
||||
Choose **Text** or **JSON**. **JSON** ensures the model returns valid JSON.
|
||||
|
||||
### Presence Penalty
|
||||
|
||||
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.
|
||||
|
||||
### 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.
|
||||
|
||||
### Timeout
|
||||
|
||||
Enter the maximum request time in milliseconds.
|
||||
|
||||
### Max Retries
|
||||
|
||||
Enter the maximum number of times to retry a request.
|
||||
|
||||
### Top P
|
||||
|
||||
Use this option to set the probability the completion should use. Use a lower value to ignore less probable options.
|
||||
|
||||
## Templates and examples
|
||||
|
||||
<!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
|
||||
[[ templatesWidget(page.title, 'vercel-ai-gateway-chat-model') ]]
|
||||
|
||||
## Related resources
|
||||
|
||||
As the Vercel AI Gateway is API-compatible with OpenAI, you can refer to [LangChains's OpenAI documentation](https://js.langchain.com/docs/integrations/chat/openai/) for more information about the service.
|
||||
|
||||
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md"
|
||||
|
||||
--8<-- "_glossary/ai-glossary.md"
|
||||
52
docs/integrations/builtin/credentials/vercel.md
Normal file
52
docs/integrations/builtin/credentials/vercel.md
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
|
||||
title: Vercel AI Gateway credentials
|
||||
description: Documentation for the Vercel AI Gateway credentials. Use these credentials to authenticate the Vercel AI Gateway in n8n, a workflow automation platform.
|
||||
contentType: [integration, reference]
|
||||
priority: critical
|
||||
---
|
||||
|
||||
# Vercel AI Gateway credentials
|
||||
|
||||
You can use these credentials to authenticate the following nodes:
|
||||
|
||||
- [Chat Vercel AI Gateway](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatvercel.md)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
Create a [Vercel](https://vercel.com/) account.
|
||||
|
||||
## Supported authentication methods
|
||||
|
||||
- API key
|
||||
- OIDC token
|
||||
|
||||
## Related resources
|
||||
|
||||
Refer to the [Vercel AI Gateway documentation](https://vercel.com/docs/ai-gateway) for more information about the service.
|
||||
|
||||
## Using API key
|
||||
|
||||
To configure this credential, you'll need:
|
||||
|
||||
- An **API Key**
|
||||
|
||||
To generate your API Key:
|
||||
|
||||
1. [Login to Vercel](https://vercel.com/login) or [create an account](https://vercel.com/signup).
|
||||
2. Go to the Vercel dashboard and select the **AI Gateway** tab.
|
||||
3. Select **API keys** on the left side bar.
|
||||
4. Select **Add key** and proceed with **Create key** from the Dialog.
|
||||
4. Copy your key and add it as the **API Key** in n8n.
|
||||
|
||||
## Using OIDC token
|
||||
|
||||
To configure this credential, you'll need:
|
||||
|
||||
- An **OIDC token**
|
||||
|
||||
To generate your OIDC token:
|
||||
|
||||
1. In local development, link your application to a Vercel project with the `vc link` command.
|
||||
2. Run the `vercel env pull` command to pull the environment variables from Vercel.
|
||||
3. Copy your token and add it as the **OIDC TOKEN** in n8n.
|
||||
2
nav.yml
2
nav.yml
@@ -744,6 +744,7 @@ nav:
|
||||
- OpenAI Chat Model: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/index.md
|
||||
- Common issues: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/common-issues.md
|
||||
- OpenRouter Chat Model: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenrouter.md
|
||||
- Vercel AI Gateway Chat Model: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatvercel.md
|
||||
- xAI Grok Chat Model: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatxaigrok.md
|
||||
- Cohere Model: integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmcohere.md
|
||||
- Ollama Model:
|
||||
@@ -1074,6 +1075,7 @@ nav:
|
||||
- integrations/builtin/credentials/urlscanio.md
|
||||
- integrations/builtin/credentials/venafitlsprotectcloud.md
|
||||
- integrations/builtin/credentials/venafitlsprotectdatacenter.md
|
||||
- integrations/builtin/credentials/vercel.md
|
||||
- integrations/builtin/credentials/vero.md
|
||||
- integrations/builtin/credentials/virustotal.md
|
||||
- integrations/builtin/credentials/vonage.md
|
||||
|
||||
Reference in New Issue
Block a user