Skip to content

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]

781 B
Raw Blame
import React from "react";

import { type ComplexityRouterConfigValue, usesLlmClassifier } from "./ComplexityRouterConfig";
import { restrictedBy } from "./TierRestrictions";

const TierConfigIntro: React.FC<{ value: ComplexityRouterConfigValue }> = ({ value }) => (
  <div className="mb-4 space-y-2 text-sm text-muted-foreground">
    <p>Choose one or more models for each tier. Requests use the models in their assigned tier</p>
    <p className="text-xs">
      {restrictedBy(value, "displayNames")?.reason ?? "Display names appear in the dashboard and spend logs"}
      {!value.custom_tier_set &&
        usesLlmClassifier(value.classifier_type) &&
        ". Your judge model also uses these names to classify requests"}
    </p>
  </div>
);

export default TierConfigIntro;