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
fix(ui): Change default key type from 'Default' to 'LLM API' for improved security (#19516)
Priyam Mannaac0ab214fb8a
diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsxindex 90ed9a62cc0..7664393a9ee 100644--- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx+++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx@@ -159,7 +159,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({ team, teams, data, addKey }) => {const [userSearchLoading, setUserSearchLoading] = useState<boolean>(false);const [mcpAccessGroups, setMcpAccessGroups] = useState<string[]>([]);const [disabledCallbacks, setDisabledCallbacks] = useState<string[]>([]);- const [keyType, setKeyType] = useState<string>("default");+ const [keyType, setKeyType] = useState<string>("llm_api");const [modelAliases, setModelAliases] = useState<{ [key: string]: string }>({});const [autoRotationEnabled, setAutoRotationEnabled] = useState<boolean>(false);const [rotationInterval, setRotationInterval] = useState<string>("30d");@@ -168,7 +168,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({ team, teams, data, addKey }) => {form.resetFields();setLoggingSettings([]);setDisabledCallbacks([]);- setKeyType("default");+ setKeyType("llm_api");setModelAliases({});setAutoRotationEnabled(false);setRotationInterval("30d");@@ -181,7 +181,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({ team, teams, data, addKey }) => {form.resetFields();setLoggingSettings([]);setDisabledCallbacks([]);- setKeyType("default");+ setKeyType("llm_api");setModelAliases({});setAutoRotationEnabled(false);setRotationInterval("30d");@@ -676,11 +676,11 @@ const CreateKey: React.FC<CreateKeyProps> = ({ team, teams, data, addKey }) => {</span>}name="key_type"- initialValue="default"+ initialValue="llm_api"className="mt-4"><Select- defaultValue="default"+ defaultValue="llm_api"placeholder="Select key type"style={{ width: "100%" }}optionLabelProp="label"