Skip to content
Sign in
ObservabilityModel routing flowMenu

Model routing flowPro

A Sankey of requests from features to models to outcomes.

ProFeatures through models to outcomes; point at a node to trace it.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/model-routing-flow

Usage

tsx
import { ModelRoutingFlow } from "@/components/ui/chatcn/pro/model-routing-flow"

<ModelRoutingFlow flows={flows} failureOutcomes={["Failed"]} />

Band width is request count, so fallbacks and retries show their real share. Point at or focus a node to trace its paths; failures draw in red with the word on the node.

Examples

States

ProOne feature, short.

Props

PropTypeNotes
flows{ feature, model, outcome, requests }[]One row per path
failureOutcomesstring[]Default ["Failed"]
heightnumberDefault 320

Accessibility

  • Nodes are focusable and announce their count and share.
  • A table of every path describes the chart for screen readers.