From 9c4bf01bd6c39f4cbc80258c663b14c742dbfe28 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 19 Feb 2024 15:14:03 -0800 Subject: [PATCH] (feat) ui set tpm / rpm limits --- .../src/components/create_key_button.tsx | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index 7e93f0a0a..b27443714 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -70,20 +70,23 @@ const CreateKey: React.FC = ({ onOk={handleOk} onCancel={handleCancel} > -
+ {userRole === 'App Owner' || userRole === 'Admin' ? ( <> + +

Optional

+

Optional

= ({ ))} +

Optional, defaults to all models

@@ -108,18 +112,35 @@ const CreateKey: React.FC = ({ name="max_budget" > +

Optional, defaults Unlimited Budget

+ + + +

Optional, defaults to Unlimited TPM

+
+ + +

Optional, defaults to Unlimited RPM

+

Optional, defaults to never expiring key

+

Optional, defaults to null

) : (