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
Permission Management - disable global guardrails by key/team (#16983)
Krish Dholakiae11d34eb69f4
diff --git a/litellm/integrations/custom_guardrail.py b/litellm/integrations/custom_guardrail.pyindex b52f1b3095e..60f812fc73a 100644--- a/litellm/integrations/custom_guardrail.py+++ b/litellm/integrations/custom_guardrail.py@@ -11,9 +11,7 @@ from litellm.types.guardrails import (Mode,PiiEntityType,)-from litellm.types.llms.openai import (- AllMessageValues,-)+from litellm.types.llms.openai import AllMessageValuesfrom litellm.types.proxy.guardrails.guardrail_hooks.base import GuardrailConfigModelfrom litellm.types.utils import (CallTypes,@@ -136,6 +134,17 @@ class CustomGuardrail(CustomLogger):f"Event hook {event_hook} is not in the supported event hooks {supported_event_hooks}")+ def get_disable_global_guardrail(self, data: dict) -> Optional[bool]:+ """+ Returns True if the global guardrail should be disabled+ """+ if "disable_global_guardrail" in data:+ return data["disable_global_guardrail"]+ metadata = data.get("litellm_metadata") or data.get("metadata", {})+ if "disable_global_guardrail" in metadata:+ return metadata["disable_global_guardrail"]+ return False+def get_guardrail_from_metadata(self, data: dict) -> Union[List[str], List[Dict[str, DynamicGuardrailParams]]]:@@ -252,6 +261,7 @@ class CustomGuardrail(CustomLogger):Returns True if the guardrail should be run on the event_type"""requested_guardrails = self.get_guardrail_from_metadata(data)+ disable_global_guardrail = self.get_disable_global_guardrail(data)verbose_logger.debug("inside should_run_guardrail for guardrail=%s event_type= %s guardrail_supported_event_hooks= %s requested_guardrails= %s self.default_on= %s",self.guardrail_name,@@ -260,7 +270,7 @@ class CustomGuardrail(CustomLogger):requested_guardrails,self.default_on,)- if self.default_on is True:+ if self.default_on is True and disable_global_guardrail is not True:if self._event_hook_is_event_type(event_type):if isinstance(self.event_hook, Mode):try:diff --git a/litellm/proxy/_experimental/out/api-reference.html b/litellm/proxy/_experimental/out/api-reference/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/api-reference.htmlrename to litellm/proxy/_experimental/out/api-reference/index.htmldiff --git a/litellm/proxy/_experimental/out/guardrails.html b/litellm/proxy/_experimental/out/guardrails.htmldeleted file mode 100644index fb03d0380cb..00000000000--- a/litellm/proxy/_experimental/out/guardrails.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/webpack-db32e14ed3b4a921.js"/><script src="/litellm-asset-prefix/_next/static/chunks/fd9d1056-64e84c4092e0c5d7.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2117-2da5ec8fad6a6c25.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/main-app-c6945ec5b2d5e671.js" async=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link rel="icon" href="./favicon.ico"/><meta name="next-size-adjust"/><script src="/litellm-asset-prefix/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/litellm-asset-prefix/_next/static/chunks/webpack-db32e14ed3b4a921.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/litellm-asset-prefix/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"style\"]\n3:HL[\"/litellm-asset-prefix/_next/static/css/93f4a9472960815e.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"4:I[12846,[],\"\"]\n6:I[19107,[],\"ClientPageRoot\"]\n7:I[49514,[\"1114\",\"static/chunks/1114-744a38eea84cb2ab.js\",\"1491\",\"static/chunks/1491-d253a2d682d4c9f6.js\",\"4556\",\"static/chunks/4556-6a2e7184dcc130ca.js\",\"219\",\"static/chunks/219-ae14d9fb99d6ae14.js\",\"2926\",\"static/chunks/2926-b5dcad9f62f5e2b1.js\",\"2409\",\"static/chunks/2409-7de3355d049b247b.js\",\"1529\",\"static/chunks/1529-130888c02463f3dd.js\",\"3709\",\"static/chunks/3709-b17db86e0ab325d2.js\",\"1994\",\"static/chunks/1994-a50f20dc48d3b7c5.js\",\"7908\",\"static/chunks/7908-07a76cfe29c543c9.js\",\"2525\",\"static/chunks/2525-5d3265de892ef666.js\",\"795\",\"static/chunks/795-79942bf68d21d57b.js\",\"9011\",\"static/chunks/9011-0769cb78a6e5f233.js\",\"5319\",\"static/chunks/5319-43bd4ee5bb7e50d1.js\",\"3992\",\"static/chunks/3992-9d2213112c2e96e3.js\",\"1915\",\"static/chunks/1915-536aa183e119ecab.js\",\"5869\",\"static/chunks/5869-7be6e0175610c221.js\",\"4706\",\"static/chunks/4706-c19be50afb046192.js\",\"169\",\"static/chunks/169-07530b6fecd36167.js\",\"3655\",\"static/chunks/3655-03331223540a9ced.js\",\"8049\",\"static/chunks/8049-548c64c7d402f0bd.js\",\"630\",\"static/chunks/630-30b8a0964c0b2e6d.js\",\"6607\",\"static/chunks/app/(dashboard)/guardrails/page-2c66c63a4eb47f34.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[36423,[],\"\"]\na:I[89219,[\"1114\",\"static/chunks/1114-744a38eea84cb2ab.js\",\"1491\",\"static/chunks/1491-d253a2d682d4c9f6.js\",\"4556\",\"static/chunks/4556-6a2e7184dcc130ca.js\",\"1529\",\"static/chunks/1529-130888c02463f3dd.js\",\"3709\",\"static/chunks/3709-b17db86e0ab325d2.js\",\"795\",\"static/chunks/795-79942bf68d21d57b.js\",\"9165\",\"static/chunks/9165-2a738a73d0d5f1d1.js\",\"8098\",\"static/chunks/8098-9c93335cc7aa2e14.js\",\"8049\",\"static/chunks/8049-548c64c7d402f0bd.js\",\"2019\",\"static/chunks/2019-1fa7007382ab15bb.js\",\"5642\",\"static/chunks/app/(dashboard)/layout-93fa840c015d31b2.js\"],\"default\",1]\nc:I[31857,[\"1114\",\"static/chunks/1114-744a38eea84cb2ab.js\",\"1491\",\"static/chunks/1491-d253a2d682d4c9f6.js\",\"8049\",\"static/chunks/8049-548c64c7d402f0bd.js\",\"3185\",\"static/chunks/app/layout-f597dcfc7682a282.js\"],\"FeatureFlagsProvider\"]\n12:I[61060,[],\"\""])</script><script>self.__next_f.push([1,"]\nb:{}\nd:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\ne:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\nf:{\"display\":\"inline-block\"}\n10:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n13:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L4\",null,{\"buildId\":\"TkaZwJ2-CB-TmqPtTfFGx\",\"assetPrefix\":\"/litellm-asset-prefix\",\"urlParts\":[\"\",\"guardrails\"],\"initialTree\":[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"guardrails\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"guardrails\",{\"children\":[\"__PAGE__\",{},[[\"$L5\",[\"$\",\"$L6\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$7\"}],null],null],null]},[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"(dashboard)\",\"children\",\"guardrails\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"$La\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"(dashboard)\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":\"$b\"}]],null],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/93f4a9472960815e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_1c856b\",\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$d\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$e\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$f\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$10\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L11\"],\"globalErrorComponent\":\"$12\",\"missingSlots\":\"$W13\"}]\n"])</script><script>self.__next_f.push([1,"11:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"5\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"meta\",\"6\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/logs.html b/litellm/proxy/_experimental/out/logs/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/logs.htmlrename to litellm/proxy/_experimental/out/logs/index.htmldiff --git a/litellm/proxy/_experimental/out/model-hub.html b/litellm/proxy/_experimental/out/model-hub/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/model-hub.htmlrename to litellm/proxy/_experimental/out/model-hub/index.htmldiff --git a/litellm/proxy/_experimental/out/model_hub_table.html b/litellm/proxy/_experimental/out/model_hub_table/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/model_hub_table.htmlrename to litellm/proxy/_experimental/out/model_hub_table/index.htmldiff --git a/litellm/proxy/_experimental/out/models-and-endpoints.html b/litellm/proxy/_experimental/out/models-and-endpoints/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/models-and-endpoints.htmlrename to litellm/proxy/_experimental/out/models-and-endpoints/index.htmldiff --git a/litellm/proxy/_experimental/out/onboarding.html b/litellm/proxy/_experimental/out/onboarding.htmldeleted file mode 100644index 49527b37dbf..00000000000--- a/litellm/proxy/_experimental/out/onboarding.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/webpack-db32e14ed3b4a921.js"/><script src="/litellm-asset-prefix/_next/static/chunks/fd9d1056-64e84c4092e0c5d7.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2117-2da5ec8fad6a6c25.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/main-app-c6945ec5b2d5e671.js" async=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link rel="icon" href="./favicon.ico"/><meta name="next-size-adjust"/><script src="/litellm-asset-prefix/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/litellm-asset-prefix/_next/static/chunks/webpack-db32e14ed3b4a921.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/litellm-asset-prefix/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"style\"]\n3:HL[\"/litellm-asset-prefix/_next/static/css/93f4a9472960815e.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"4:I[12846,[],\"\"]\n6:I[19107,[],\"ClientPageRoot\"]\n7:I[12011,[\"3665\",\"static/chunks/3014691f-702e24806fe9cec4.js\",\"1114\",\"static/chunks/1114-744a38eea84cb2ab.js\",\"1491\",\"static/chunks/1491-d253a2d682d4c9f6.js\",\"4556\",\"static/chunks/4556-6a2e7184dcc130ca.js\",\"8806\",\"static/chunks/8806-3db5b9008c4f8124.js\",\"8049\",\"static/chunks/8049-548c64c7d402f0bd.js\",\"8461\",\"static/chunks/app/onboarding/page-87bd0d394eab042d.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[36423,[],\"\"]\na:I[31857,[\"1114\",\"static/chunks/1114-744a38eea84cb2ab.js\",\"1491\",\"static/chunks/1491-d253a2d682d4c9f6.js\",\"8049\",\"static/chunks/8049-548c64c7d402f0bd.js\",\"3185\",\"static/chunks/app/layout-f597dcfc7682a282.js\"],\"FeatureFlagsProvider\"]\nc:I[61060,[],\"\"]\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L4\",null,{\"buildId\":\"TkaZwJ2-CB-TmqPtTfFGx\",\"assetPrefix\":\"/litellm-asset-prefix\",\"urlParts\":[\"\",\"onboarding\"],\"initialTree\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{},[[\"$L5\",[\"$\",\"$L6\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$7\"}],null],null],null]},[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"onboarding\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/93f4a9472960815e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_1c856b\",\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"5\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"meta\",\"6\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/organizations.html b/litellm/proxy/_experimental/out/organizations/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/organizations.htmlrename to litellm/proxy/_experimental/out/organizations/index.htmldiff --git a/litellm/proxy/_experimental/out/playground.html b/litellm/proxy/_experimental/out/playground/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/playground.htmlrename to litellm/proxy/_experimental/out/playground/index.htmldiff --git a/litellm/proxy/_experimental/out/teams.html b/litellm/proxy/_experimental/out/teams/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/teams.htmlrename to litellm/proxy/_experimental/out/teams/index.htmldiff --git a/litellm/proxy/_experimental/out/test-key.html b/litellm/proxy/_experimental/out/test-key/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/test-key.htmlrename to litellm/proxy/_experimental/out/test-key/index.htmldiff --git a/litellm/proxy/_experimental/out/usage.html b/litellm/proxy/_experimental/out/usage/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/usage.htmlrename to litellm/proxy/_experimental/out/usage/index.htmldiff --git a/litellm/proxy/_experimental/out/users.html b/litellm/proxy/_experimental/out/users/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/users.htmlrename to litellm/proxy/_experimental/out/users/index.htmldiff --git a/litellm/proxy/_experimental/out/virtual-keys.html b/litellm/proxy/_experimental/out/virtual-keys/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/virtual-keys.htmlrename to litellm/proxy/_experimental/out/virtual-keys/index.htmldiff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex d6b2d664f9f..2abd7a30036 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -812,6 +812,7 @@ class KeyRequestBase(GenerateRequestBase):key: Optional[str] = Nonebudget_id: Optional[str] = Nonetags: Optional[List[str]] = None+ disable_global_guardrails: Optional[bool] = Noneenforced_params: Optional[List[str]] = Noneallowed_routes: Optional[list] = []allowed_passthrough_routes: Optional[list] = None@@ -1357,6 +1358,7 @@ class NewTeamRequest(TeamBase):prompts: Optional[List[str]] = Noneobject_permission: Optional[LiteLLM_ObjectPermissionBase] = Noneallowed_passthrough_routes: Optional[list] = None+ disable_global_guardrails: Optional[bool] = Nonemodel_rpm_limit: Optional[Dict[str, int]] = Nonerpm_limit_type: Optional[Literal["guaranteed_throughput", "best_effort_throughput"]@@ -1418,6 +1420,7 @@ class UpdateTeamRequest(LiteLLMPydanticObjectBase):model_aliases: Optional[dict] = Noneguardrails: Optional[List[str]] = Noneobject_permission: Optional[LiteLLM_ObjectPermissionBase] = None+ disable_global_guardrails: Optional[bool] = Noneteam_member_budget: Optional[float] = Noneteam_member_rpm_limit: Optional[int] = Noneteam_member_tpm_limit: Optional[int] = None@@ -3257,6 +3260,7 @@ LiteLLM_ManagementEndpoint_MetadataFields = []LiteLLM_ManagementEndpoint_MetadataFields_Premium = [+ "disable_global_guardrails","guardrails","tags","team_member_key_duration",diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.pyindex 89c16ce8243..0a7fc62a42a 100644--- a/litellm/proxy/litellm_pre_call_utils.py+++ b/litellm/proxy/litellm_pre_call_utils.py@@ -585,7 +585,6 @@ class LiteLLMProxyRequestSetup:if user_api_key_dict.budget_reset_atelse None),-user_api_key_auth_metadata=user_api_key_dict.metadata,)return user_api_key_logged_metadata@@ -668,6 +667,12 @@ class LiteLLMProxyRequestSetup:tags_to_add=key_metadata["tags"],))+ if "disable_global_guardrails" in key_metadata and isinstance(+ key_metadata["disable_global_guardrails"], bool+ ):+ data[_metadata_variable_name]["disable_global_guardrails"] = key_metadata[+ "disable_global_guardrails"+ ]if "spend_logs_metadata" in key_metadata and isinstance(key_metadata["spend_logs_metadata"], dict):@@ -936,6 +941,12 @@ async def add_litellm_data_to_request( # noqa: PLR0915request_tags=data[_metadata_variable_name].get("tags"),tags_to_add=team_metadata["tags"],)+ if "disable_global_guardrails" in team_metadata and isinstance(+ team_metadata["disable_global_guardrails"], bool+ ):+ data[_metadata_variable_name]["disable_global_guardrails"] = team_metadata[+ "disable_global_guardrails"+ ]if "spend_logs_metadata" in team_metadata and isinstance(team_metadata["spend_logs_metadata"], dict):@@ -1240,7 +1251,7 @@ def _add_guardrails_from_key_or_team_metadata() -> None:"""Helper add guardrails from key or team metadata to request data-+Key guardrails are set first, then team guardrails are appended (without duplicates).Args:@@ -1254,19 +1265,25 @@ def _add_guardrails_from_key_or_team_metadata(# Initialize guardrails set (avoiding duplicates)combined_guardrails = set()-+# Add key-level guardrails firstif key_metadata and "guardrails" in key_metadata:- if isinstance(key_metadata["guardrails"], list) and len(key_metadata["guardrails"]) > 0:+ if (+ isinstance(key_metadata["guardrails"], list)+ and len(key_metadata["guardrails"]) > 0+ ):_premium_user_check()combined_guardrails.update(key_metadata["guardrails"])-+# Add team-level guardrails (set automatically handles duplicates)if team_metadata and "guardrails" in team_metadata:- if isinstance(team_metadata["guardrails"], list) and len(team_metadata["guardrails"]) > 0:+ if (+ isinstance(team_metadata["guardrails"], list)+ and len(team_metadata["guardrails"]) > 0+ ):_premium_user_check()combined_guardrails.update(team_metadata["guardrails"])-+# Set combined guardrails in metadata as listif combined_guardrails:data[metadata_variable_name]["guardrails"] = list(combined_guardrails)@@ -1292,23 +1309,32 @@ def move_guardrails_to_metadata()#########################################################################################- # User's might send "guardrails" in the request body, we need to add them to the request metadata.+ # User's might send "guardrails" in the request body, we need to add them to the request metadata.# Since downstream logic requires "guardrails" to be in the request metadata#########################################################################################if "guardrails" in data:request_body_guardrails = data.pop("guardrails")- if "guardrails" in data[_metadata_variable_name] and isinstance(data[_metadata_variable_name]["guardrails"], list):+ if "guardrails" in data[_metadata_variable_name] and isinstance(+ data[_metadata_variable_name]["guardrails"], list+ ):data[_metadata_variable_name]["guardrails"].extend(request_body_guardrails)else:data[_metadata_variable_name]["guardrails"] = request_body_guardrails-+#########################################################################################if "guardrail_config" in data:request_body_guardrail_config = data.pop("guardrail_config")- if "guardrail_config" in data[_metadata_variable_name] and isinstance(data[_metadata_variable_name]["guardrail_config"], dict):- data[_metadata_variable_name]["guardrail_config"].update(request_body_guardrail_config)+ if "guardrail_config" in data[_metadata_variable_name] and isinstance(+ data[_metadata_variable_name]["guardrail_config"], dict+ ):+ data[_metadata_variable_name]["guardrail_config"].update(+ request_body_guardrail_config+ )else:- data[_metadata_variable_name]["guardrail_config"] = request_body_guardrail_config+ data[_metadata_variable_name][+ "guardrail_config"+ ] = request_body_guardrail_config+def add_provider_specific_headers_to_request(data: dict,diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.pyindex f9257ffe078..fdbea56598c 100644--- a/litellm/proxy/management_endpoints/team_endpoints.py+++ b/litellm/proxy/management_endpoints/team_endpoints.py@@ -688,8 +688,7 @@ async def new_team( # noqa: PLR0915},)-- if (data.max_budget is not None and user_api_key_dict.user_id is not None):+ if data.max_budget is not None and user_api_key_dict.user_id is not None:# Fetch user object to get max_budgetuser_obj = await get_user_object(user_id=user_api_key_dict.user_id,@@ -699,7 +698,7 @@ async def new_team( # noqa: PLR0915)if (- user_obj is not None+ user_obj is not Noneand user_obj.max_budget is not Noneand data.max_budget > user_obj.max_budget):diff --git a/tests/test_litellm/integrations/test_custom_guardrail.py b/tests/test_litellm/integrations/test_custom_guardrail.pyindex 601c18077a5..21206ec9482 100644--- a/tests/test_litellm/integrations/test_custom_guardrail.py+++ b/tests/test_litellm/integrations/test_custom_guardrail.py@@ -171,6 +171,79 @@ class TestCustomGuardrailShouldRunGuardrail:assert result is False+ def test_should_run_guardrail_with_disable_global_guardrail(self):+ """Test that disable_global_guardrail disables a global guardrail when set to True"""+ from litellm.types.guardrails import GuardrailEventHooks++ # Create a guardrail with default_on=True (global guardrail)+ custom_guardrail = CustomGuardrail(+ guardrail_name="global_guardrail",+ default_on=True,+ event_hook=GuardrailEventHooks.pre_call,+ )++ # Test 1: Global guardrail runs by default when default_on=True+ data = {+ "model": "gpt-3.5-turbo",+ "messages": [{"role": "user", "content": "test"}],+ }+ result = custom_guardrail.should_run_guardrail(+ data=data, event_type=GuardrailEventHooks.pre_call+ )+ assert result is True, "Global guardrail should run when default_on=True"++ # Test 2: Global guardrail is disabled when disable_global_guardrail=True at root level+ data_with_disable_root = {+ "model": "gpt-3.5-turbo",+ "messages": [{"role": "user", "content": "test"}],+ "disable_global_guardrail": True,+ }+ result = custom_guardrail.should_run_guardrail(+ data=data_with_disable_root, event_type=GuardrailEventHooks.pre_call+ )+ assert (+ result is False+ ), "Global guardrail should be disabled when disable_global_guardrail=True"++ # Test 3: Global guardrail is disabled when disable_global_guardrail=True in litellm_metadata+ data_with_disable_litellm = {+ "model": "gpt-3.5-turbo",+ "messages": [{"role": "user", "content": "test"}],+ "litellm_metadata": {"disable_global_guardrail": True},+ }+ result = custom_guardrail.should_run_guardrail(+ data=data_with_disable_litellm, event_type=GuardrailEventHooks.pre_call+ )+ assert (+ result is False+ ), "Global guardrail should be disabled when disable_global_guardrail=True in litellm_metadata"++ # Test 4: Global guardrail is disabled when disable_global_guardrail=True in metadata+ data_with_disable_metadata = {+ "model": "gpt-3.5-turbo",+ "messages": [{"role": "user", "content": "test"}],+ "metadata": {"disable_global_guardrail": True},+ }+ result = custom_guardrail.should_run_guardrail(+ data=data_with_disable_metadata, event_type=GuardrailEventHooks.pre_call+ )+ assert (+ result is False+ ), "Global guardrail should be disabled when disable_global_guardrail=True in metadata"++ # Test 5: Global guardrail runs when disable_global_guardrail=False+ data_with_disable_false = {+ "model": "gpt-3.5-turbo",+ "messages": [{"role": "user", "content": "test"}],+ "disable_global_guardrail": False,+ }+ result = custom_guardrail.should_run_guardrail(+ data=data_with_disable_false, event_type=GuardrailEventHooks.pre_call+ )+ assert (+ result is True+ ), "Global guardrail should still run when disable_global_guardrail=False"+class TestApplyGuardrailCheck:def test_apply_guardrail_check_only_on_direct_implementation(self):@@ -304,7 +377,9 @@ class TestGuardrailLoggingAggregation:self._invoke_add_log(request_data)- info = request_data["litellm_metadata"]["standard_logging_guardrail_information"]+ info = request_data["litellm_metadata"][+ "standard_logging_guardrail_information"+ ]assert isinstance(info, list)assert len(info) == 2assert info[1]["guardrail_name"] == "test_guardrail"diff --git a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/modals/CreateTeamModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/modals/CreateTeamModal.tsxindex 34fb8fbb6ee..80d99b5a9eb 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/modals/CreateTeamModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/modals/CreateTeamModal.tsx@@ -1,4 +1,4 @@-import { Button as Button2, Form, Input, Modal, Select as Select2, Tooltip } from "antd";+import { Button as Button2, Form, Input, Modal, Select as Select2, Switch, Tooltip } from "antd";import { Accordion, AccordionBody, AccordionHeader, Text, TextInput } from "@tremor/react";import { InfoCircleOutlined } from "@ant-design/icons";import {@@ -452,6 +452,25 @@ const CreateTeamModal = ({}))}/></Form.Item>+ <Form.Item+ label={+ <span>+ Disable Global Guardrails{" "}+ <Tooltip title="When enabled, this team will bypass any guardrails configured to run on every request (global guardrails)">+ <InfoCircleOutlined style={{ marginLeft: "4px" }} />+ </Tooltip>+ </span>+ }+ name="disable_global_guardrails"+ className="mt-4"+ valuePropName="checked"+ help="Bypass global guardrails for this team"+ >+ <Switch+ checkedChildren="Yes"+ unCheckedChildren="No"+ />+ </Form.Item><Form.Itemlabel={<span>diff --git a/ui/litellm-dashboard/src/components/OldTeams.tsx b/ui/litellm-dashboard/src/components/OldTeams.tsxindex 325df0ac7bf..638d2bf1735 100644--- a/ui/litellm-dashboard/src/components/OldTeams.tsx+++ b/ui/litellm-dashboard/src/components/OldTeams.tsx@@ -30,7 +30,7 @@ import {Text,TextInput,} from "@tremor/react";-import { Button as Button2, Form, Input, Modal, Select as Select2, Tooltip, Typography } from "antd";+import { Button as Button2, Form, Input, Modal, Select as Select2, Switch, Tooltip, Typography } from "antd";import React, { useEffect, useState } from "react";import { formatNumberWithCommas } from "../utils/dataUtils";import { fetchTeams } from "./common_components/fetch_teams";@@ -1262,6 +1262,26 @@ const Teams: React.FC<TeamProps> = ({}))}/></Form.Item>+ <Form.Item+ label={+ <span>+ Disable Global Guardrails{" "}+ <Tooltip title="When enabled, this team will bypass any guardrails configured to run on every request (global guardrails)">+ <InfoCircleOutlined style={{ marginLeft: "4px" }} />+ </Tooltip>+ </span>+ }+ name="disable_global_guardrails"+ className="mt-4"+ valuePropName="checked"+ help="Bypass global guardrails for this team"+ >+ <Switch+ disabled={!premiumUser}+ checkedChildren={premiumUser ? "Yes" : "Premium feature - Upgrade to disable global guardrails by team"}+ unCheckedChildren={premiumUser ? "No" : "Premium feature - Upgrade to disable global guardrails by team"}+ />+ </Form.Item><Form.Itemlabel={<span>diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsxindex 02837eb6669..1cb4623ca6d 100644--- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx+++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx@@ -3,7 +3,7 @@ import React, { useState, useEffect, useCallback } from "react";import { Button, TextInput, Grid, Col } from "@tremor/react";import { Text, Title, Accordion, AccordionHeader, AccordionBody } from "@tremor/react";import { CopyToClipboard } from "react-copy-to-clipboard";-import { Button as Button2, Modal, Form, Input, Select, Radio } from "antd";+import { Button as Button2, Modal, Form, Input, Select, Radio, Switch } from "antd";import NumericalInput from "../shared/numerical_input";import { getModelDisplayName } from "../key_team_helpers/fetch_available_models_team_key";import SchemaFormFields from "../common_components/check_openapi_schema";@@ -879,6 +879,37 @@ const CreateKey: React.FC<CreateKeyProps> = ({options={guardrailsList.map((name) => ({ value: name, label: name }))}/></Form.Item>+ <Form.Item+ label={+ <span>+ Disable Global Guardrails{" "}+ <Tooltip title="When enabled, this key will bypass any guardrails configured to run on every request (global guardrails)">+ <a+ href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"+ target="_blank"+ rel="noopener noreferrer"+ onClick={(e) => e.stopPropagation()} // Prevent accordion from collapsing when clicking link+ >+ <InfoCircleOutlined style={{ marginLeft: "4px" }} />+ </a>+ </Tooltip>+ </span>+ }+ name="disable_global_guardrails"+ className="mt-4"+ valuePropName="checked"+ help={+ premiumUser+ ? "Bypass global guardrails for this key"+ : "Premium feature - Upgrade to disable global guardrails by key"+ }+ >+ <Switch+ disabled={!premiumUser}+ checkedChildren="Yes"+ unCheckedChildren="No"+ />+ </Form.Item><Form.Itemlabel={<span>diff --git a/ui/litellm-dashboard/src/components/team/team_info.tsx b/ui/litellm-dashboard/src/components/team/team_info.tsxindex 0e3c5e92e6b..3e7f12e751d 100644--- a/ui/litellm-dashboard/src/components/team/team_info.tsx+++ b/ui/litellm-dashboard/src/components/team/team_info.tsx@@ -25,7 +25,7 @@ import {teamUpdateCall,getGuardrailsList,} from "@/components/networking";-import { Button, Form, Input, Select, message, Modal, Tooltip } from "antd";+import { Button, Form, Input, Select, Switch, message, Modal, Tooltip } from "antd";import { InfoCircleOutlined } from "@ant-design/icons";import { ArrowLeftIcon } from "@heroicons/react/outline";import MemberModal from "./edit_membership";@@ -558,6 +558,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({team_member_tpm_limit: info.team_member_budget_table?.tpm_limit,team_member_rpm_limit: info.team_member_budget_table?.rpm_limit,guardrails: info.metadata?.guardrails || [],+ disable_global_guardrails: info.metadata?.disable_global_guardrails || false,metadata: info.metadata? JSON.stringify((({ logging, ...rest }) => rest)(info.metadata), null, 2): "",@@ -673,6 +674,25 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({/></Form.Item>+ <Form.Item+ label={+ <span>+ Disable Global Guardrails{" "}+ <Tooltip title="When enabled, this team will bypass any guardrails configured to run on every request (global guardrails)">+ <InfoCircleOutlined style={{ marginLeft: "4px" }} />+ </Tooltip>+ </span>+ }+ name="disable_global_guardrails"+ valuePropName="checked"+ help="Bypass global guardrails for this team"+ >+ <Switch+ checkedChildren="Yes"+ unCheckedChildren="No"+ />+ </Form.Item>+<Form.Item label="Vector Stores" name="vector_stores"><VectorStoreSelectoronChange={(values: string[]) => form.setFieldValue("vector_stores", values)}@@ -806,6 +826,17 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({<Badge color={info.blocked ? "red" : "green"}>{info.blocked ? "Blocked" : "Active"}</Badge></div>+ <div>+ <Text className="font-medium">Disable Global Guardrails</Text>+ <div>+ {info.metadata?.disable_global_guardrails === true ? (+ <Badge color="yellow">Enabled - Global guardrails bypassed</Badge>+ ) : (+ <Badge color="green">Disabled - Global guardrails active</Badge>+ )}+ </div>+ </div>+<ObjectPermissionsViewobjectPermission={info.object_permission}variant="inline"diff --git a/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx b/ui/litellm-dashboard/src/components/templates/key_edit_view.tsxindex 915e1e46242..8c101486404 100644--- a/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx+++ b/ui/litellm-dashboard/src/components/templates/key_edit_view.tsx@@ -1,6 +1,6 @@import GuardrailSelector from "@/components/guardrails/GuardrailSelector";import { TextInput, Button as TremorButton } from "@tremor/react";-import { Form, Input, Select, Tooltip } from "antd";+import { Form, Input, Select, Switch, Tooltip } from "antd";import { useEffect, useState } from "react";import { mapInternalToDisplayNames } from "../callback_info_helpers";import KeyLifecycleSettings from "../common_components/KeyLifecycleSettings";@@ -17,6 +17,7 @@ import NumericalInput from "../shared/numerical_input";import { Tag } from "../tag_management/types";import EditLoggingSettings from "../team/EditLoggingSettings";import VectorStoreSelector from "../vector_store_management/VectorStoreSelector";+import { InfoCircleOutlined } from "@ant-design/icons";interface KeyEditViewProps {keyData: KeyResponse;@@ -164,6 +165,7 @@ export function KeyEditView({budget_duration: getBudgetDuration(keyData.budget_duration),metadata: formatMetadataForDisplay(stripTagsFromMetadata(keyData.metadata)),guardrails: keyData.metadata?.guardrails,+ disable_global_guardrails: keyData.metadata?.disable_global_guardrails || false,prompts: keyData.metadata?.prompts,tags: keyData.metadata?.tags,vector_stores: keyData.object_permission?.vector_stores || [],@@ -188,6 +190,7 @@ export function KeyEditView({budget_duration: getBudgetDuration(keyData.budget_duration),metadata: formatMetadataForDisplay(stripTagsFromMetadata(keyData.metadata)),guardrails: keyData.metadata?.guardrails,+ disable_global_guardrails: keyData.metadata?.disable_global_guardrails || false,prompts: keyData.metadata?.prompts,tags: keyData.metadata?.tags,vector_stores: keyData.object_permission?.vector_stores || [],@@ -388,6 +391,25 @@ export function KeyEditView({)}</Form.Item>+ <Form.Item+ label={+ <span>+ Disable Global Guardrails{" "}+ <Tooltip title="When enabled, this key will bypass any guardrails configured to run on every request (global guardrails)">+ <InfoCircleOutlined style={{ marginLeft: "4px" }} />+ </Tooltip>+ </span>+ }+ name="disable_global_guardrails"+ valuePropName="checked"+ >+ <Switch+ disabled={!premiumUser}+ checkedChildren="Yes"+ unCheckedChildren="No"+ />+ </Form.Item>+<Form.Item label="Tags" name="tags"><Selectmode="tags"diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsxindex 58b8363e30f..135d693d27f 100644--- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx+++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx@@ -673,6 +673,17 @@ export default function KeyInfoView({</Text></div>+ <div>+ <Text className="font-medium">Disable Global Guardrails</Text>+ <Text>+ {currentKeyData.metadata?.disable_global_guardrails === true ? (+ <Badge color="yellow">Enabled - Global guardrails bypassed</Badge>+ ) : (+ <Badge color="green">Disabled - Global guardrails active</Badge>+ )}+ </Text>+ </div>+<div><Text className="font-medium">Models</Text><div className="flex flex-wrap gap-2 mt-1">