The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
export type ModelViewType = "groups" | "individual";
const MODEL_VIEW_OPTIONS: readonly { value: ModelViewType; label: string }[] = [
{ value: "groups", label: "Public Model Name" },
{ value: "individual", label: "Litellm Model Name" },
];
interface ModelViewToggleProps {
value: ModelViewType;
onChange: (value: ModelViewType) => void;
}
export default function ModelViewToggle({ value, onChange }: ModelViewToggleProps) {
return (
<div className="flex bg-muted rounded-lg p-1">
{MODEL_VIEW_OPTIONS.map((option) => (
<button
key={option.value}
className={`px-3 py-1 text-sm rounded-md transition-colors ${
value === option.value ? "bg-card shadow-xs text-foreground" : "text-muted-foreground hover:text-foreground"
}`}
onClick={() => onChange(option.value)}
>
{option.label}
</button>
))}
</div>
);
}