Components (172)
Model Router
Model Router — how a gateway splits its traffic across models, in a single self-contained file.
Loading Model Router…
Usage
import { ModelRouter } from "ui-kit/components/model-router";Props
| Prop | Type | Default | Description |
|---|---|---|---|
models* | RouterModel[] | — | — |
strategies* | RouterStrategy[] | — | — |
live* | RouterPolicy | — | The policy that's live now – the one the picked strategy is compared to |
version | number | 1 | Its version – "Policy v14" |
environment | string | — | Where it runs – "chat-prod" |
onDeploy | (policy: RouterPolicy) => void | Promise<void> | — | Deploy the policy – while the promise runs the button says Deploying… |
onChange | (policy: RouterPolicy) => void | — | — |
title | string | "Model router" | — |
className | string | — | — |