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
don't show test key page to internal user
Ishaan Jaff01775bc95f55
diff --git a/ui/litellm-dashboard/src/components/leftnav.tsx b/ui/litellm-dashboard/src/components/leftnav.tsxindex 0bf5da57c6f..5990a50f9e5 100644--- a/ui/litellm-dashboard/src/components/leftnav.tsx+++ b/ui/litellm-dashboard/src/components/leftnav.tsx@@ -21,7 +21,7 @@ import {ExperimentOutlined,ThunderboltOutlined,} from '@ant-design/icons';-import { old_admin_roles, v2_admin_role_names, all_admin_roles, rolesAllowedToSeeUsage } from '../utils/roles';+import { old_admin_roles, v2_admin_role_names, all_admin_roles, rolesAllowedToSeeUsage, rolesWithWriteAccess } from '../utils/roles';const { Sider } = Layout;@@ -45,7 +45,7 @@ interface MenuItem {// Note: If a menu item does not have a role, it is visible to all roles.const menuItems: MenuItem[] = [{ key: "1", page: "api-keys", label: "Virtual Keys", icon: <KeyOutlined /> },- { key: "3", page: "llm-playground", label: "Test Key", icon: <PlayCircleOutlined /> },+ { key: "3", page: "llm-playground", label: "Test Key", icon: <PlayCircleOutlined />, roles: rolesWithWriteAccess },{ key: "2", page: "models", label: "Models", icon: <BlockOutlined />, roles: all_admin_roles },{ key: "4", page: "usage", label: "Usage", icon: <BarChartOutlined /> },{ key: "6", page: "teams", label: "Teams", icon: <TeamOutlined /> },diff --git a/ui/litellm-dashboard/src/utils/roles.ts b/ui/litellm-dashboard/src/utils/roles.tsindex 8ac2d7632ba..a50f06697b6 100644--- a/ui/litellm-dashboard/src/utils/roles.ts+++ b/ui/litellm-dashboard/src/utils/roles.ts@@ -4,4 +4,5 @@ export const v2_admin_role_names = ["proxy_admin", "proxy_admin_viewer", "org_adexport const all_admin_roles = [...old_admin_roles, ...v2_admin_role_names];export const internalUserRoles = ["Internal User", "Internal Viewer"];-export const rolesAllowedToSeeUsage = ["Admin", "Admin Viewer", "Internal User", "Internal Viewer"];\ No newline at end of file+export const rolesAllowedToSeeUsage = ["Admin", "Admin Viewer", "Internal User", "Internal Viewer"];+export const rolesWithWriteAccess = ["Internal User", "Admin"];\ No newline at end of file