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]

376 B
Raw Blame
interface ModelNameDisplayProps {
  model: {
    model_name?: string;
    model_info?: {
      team_public_model_name?: string;
    };
  };
}

export const getDisplayModelName = (model: ModelNameDisplayProps["model"]): string => {
  if (model?.model_info?.team_public_model_name) {
    return model.model_info.team_public_model_name;
  }
  return model?.model_name || "-";
};