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]

255 B
Raw Blame
import type { KeyMetadata } from "./types";

export function keyActivityLabel(
  metadata: Pick<KeyMetadata, "key_alias" | "user_email"> | null | undefined,
  fallback = "-",
): string {
  return metadata?.key_alias || metadata?.user_email || fallback;
}