Overview
This node integrates with Upstage Solar models to perform chat completions based on user-provided messages and options. It supports multiple Solar models, including fast, powerful, and advanced versions, allowing users to generate conversational AI responses tailored to their needs. Common use cases include building chatbots, generating conversational content, and automating customer support interactions. For example, a user can input a series of messages with roles (system, user, assistant) and receive a generated response from the selected Solar model.
Use Case Examples
- A customer support chatbot that uses the solar-pro model to handle complex queries.
- A content generation tool that uses solar-mini for quick, efficient responses.
- An advanced assistant using solar-pro2 with reasoning effort enabled for detailed and structured outputs.
Properties
| Name | Meaning |
|---|---|
| Model | The Solar model to use for generating chat completions. Options include solar-mini (fast and efficient), solar-pro (powerful for complex tasks), and solar-pro2 (latest and most advanced). Default is solar-mini. |
| Messages | A collection of messages forming the conversation input. Each message has a role (system, user, assistant) and content. At least one message with non-empty content is required. |
| Options | Additional parameters to customize the chat completion behavior, including temperature, max tokens, top_p, streaming, reasoning effort, frequency penalty, presence penalty, response format, and JSON schema for structured outputs. |
Output
JSON
content- The generated text content from the model.usage- Token usage statistics from the model response.model- The model used for generating the response.created- Timestamp of when the response was created.full_response- The complete raw response from the Upstage API.
Dependencies
- Upstage API accessed via HTTP with authentication using a credential named 'blabApi'.
Troubleshooting
- Error if no messages are provided or if any message content is empty.
- Error if message roles are invalid (must be 'system', 'user', or 'assistant').
- Error if JSON schema is invalid when using json_schema response format.
- Errors from the Upstage API are logged and can be handled by continuing on fail or stopping execution.
- Common error messages include missing messages, invalid roles, and invalid JSON schema.