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
// Mirrors request-time matching (RouteChecks.route_matches_wildcard_pattern): only a
// trailing "*" is a wildcard (prefix match). Anything else - including a "?" or a
// non-trailing "*" - is compared by exact equality when a request is matched, so it is
// treated as a concrete alias that must exist.
export const isWildcardPattern = (value: string): boolean => value.endsWith("*");
export const getInvalidTeamEntries = (values: string[], availableTeams: string[]): string[] =>
values.filter((value) => !isWildcardPattern(value) && !availableTeams.includes(value));