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]

131 B
Raw Blame
export function mapEmptyStringToNull(input: string): string | null {
  if (input === "") {
    return null;
  }

  return input;
}