Modelpilot icon

Modelpilot

Interact with the Modelpilot API

Actions6

Overview

This node operation creates a new router configuration in the Modelpilot API. It allows users to define a router by specifying a name and various optimization weights and settings such as carbon footprint, cost, latency, quality, caching, rate limiting, fallback behavior, and request timeout. This is useful for managing AI model routing strategies to optimize performance, cost, and environmental impact.

Use Case Examples

  1. Creating a router named 'my-chatbot' with custom weights for cost, latency, and quality to optimize AI model routing.
  2. Enabling caching and rate limiting on a router to improve response times and control request flow.

Properties

Name Meaning
Router Name Name for the new router, used to identify the router configuration.
Router Configuration Collection of settings to customize the router's behavior, including weights for carbon footprint, cost, latency, quality, and toggles for caching, rate limiting, fallback, and timeout duration.

Output

JSON

  • routerId - Unique identifier of the created router.
  • routerName - Name of the created router.
  • configuration - The configuration settings applied to the router, including weights and feature toggles.
  • createdAt - Timestamp when the router was created.

Dependencies

  • Modelpilot API with an API key credential

Troubleshooting

  • Ensure the router name is unique and not empty to avoid creation errors.
  • Verify that numeric weights are within the allowed range (0 to 1) to prevent validation errors.
  • Check network connectivity and API endpoint availability to avoid request timeouts or failures.
  • If enabling caching or rate limiting, confirm that these features are supported by the Modelpilot API and properly configured.

Discussion