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
import re
from litellm.proxy.common_utils.admin_ui_utils import missing_keys_form
def test_missing_keys_form_shows_generate_command_instead_of_a_literal_master_key():
html = missing_keys_form(missing_key_names="DATABASE_URL, LITELLM_MASTER_KEY")
assert "DATABASE_URL, LITELLM_MASTER_KEY" in html
assert 'echo "LITELLM_MASTER_KEY=sk-$(openssl rand -hex 32)"' in html
suggested_master_key_values = re.findall(r'LITELLM_MASTER_KEY="([^"]*)"', html)
assert suggested_master_key_values == [""]