Overview
This node integrates with the GigaChat language models provided by Sberbank of Russia. It allows users to send text completion requests to a selected GigaChat model, enabling AI-powered natural language generation within n8n workflows. Typical use cases include generating text content, drafting messages, summarizing information, or any scenario requiring AI-based text completions.
Properties
| Name | Meaning |
|---|---|
| Model Name or ID | The specific GigaChat model to use for text generation. Users can select from a list or specify an ID via expression. |
| Options | Additional parameters to customize the model's behavior: |
| - Max Tokens | Maximum number of tokens to generate in the response (minimum 1). |
| - Temperature | Controls randomness in output; ranges from 0 (deterministic) to 3 (more random). |
| - Top P | Nucleus sampling parameter controlling diversity; value between 0 and 1. |
| - Repetition Penalty | Penalizes repeated tokens to reduce repetition; default is 1 (no penalty). |
Output
The node outputs JSON data under the json field containing the AI-generated text response from the selected GigaChat model. This typically includes the generated completion text and possibly metadata about the request or model response. The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the GigaChat API service.
- The node communicates with the GigaChat API endpoint at
https://gigachat.devices.sberbank.ru/api/v1. - No additional environment variables are explicitly required beyond the API authentication token.
Troubleshooting
- Authentication errors: Ensure the API key credential is correctly configured and valid.
- Model selection issues: If no models appear in the dropdown, verify that the API key has access and the service is reachable.
- Parameter validation: Input values like
maxTokens,temperature, andtopPmust be within allowed ranges; otherwise, the API may reject the request. - Network or SSL errors: The node skips SSL certificate validation by default; if connectivity issues arise, check network settings or proxy configurations.
Links and References
- GigaChat API Documentation (for detailed API usage)
- n8n Expressions Documentation (for dynamic property values)