From eb3aeff37f3a3f8b0b87340a8de070956fefcde5 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 29 Jan 2024 20:12:00 -0800 Subject: [PATCH] (ui) show message again --- .../src/components/create_key_button.tsx | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index ce24c72b7..a76b3b1e3 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -123,12 +123,25 @@ const CreateKey: React.FC = ({ visible={isModalVisible} onOk={handleOk} onCancel={handleCancel} + footer={null} > - {/* Display the result here */} -

- API Key: {apiKey}
- {/* Display other API response details here */} -

+ + +

+ Please save this secret key somewhere safe and accessible. For + security reasons, you will not be able to view it again{" "} + through your LiteLLM account. If you lose this secret key, you will + need to generate a new one. +

+ + + {apiKey != null ? ( + API Key: {apiKey} + ) : ( + Key being created, this might take 30s + )} + +
)}