Modelpilot icon

Modelpilot

Interact with the Modelpilot API

Actions6

Overview

This node interacts with the Modelpilot API to perform chat completions. It allows users to send a series of messages with specified roles (system, user, assistant) to the Modelpilot chat model and receive generated responses. This is useful for building conversational AI applications, chatbots, or any scenario requiring AI-generated dialogue based on user input and context.

Use Case Examples

  1. A customer support chatbot that responds to user queries using AI-generated answers.
  2. An interactive assistant that helps users with tasks by maintaining a conversation context.
  3. Generating creative writing or brainstorming ideas through a chat interface.

Properties

Name Meaning
Router ID The router identifier for your Modelpilot router, used to route the chat completion request to the correct model instance.
Messages The messages to send to the model, each with a role (system, user, assistant) and content representing the conversation history or prompt.
Additional Options Optional parameters to customize the chat completion behavior, including frequency penalty, max tokens, presence penalty, streaming option, temperature, and top_p sampling parameter.
Request Options Settings for request handling such as batching, SSL certificate validation, proxy configuration, and timeout duration.

Output

JSON

  • choices - Array of generated chat completion choices returned by the Modelpilot API, each containing the assistant's message content and related metadata.

Dependencies

  • Modelpilot API with an API key credential

Troubleshooting

  • Ensure the Router ID is correctly specified and corresponds to an active Modelpilot router to avoid routing errors.
  • Verify that the messages array is properly formatted with valid roles and non-empty content to prevent request validation errors.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If streaming is enabled, ensure the client supports handling streamed partial responses.
  • SSL certificate errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this should be used cautiously.

Discussion