diff --git a/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx b/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx index 96e6b83c36d..7eb7e2a1902 100644 --- a/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx +++ b/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx @@ -101,42 +101,65 @@ ${formattedBody} ) : ''; return ( -
+
{isLoading ? ( -
-
Testing connection to {modelName}...
- {/* You could add a spinner here */} +
+
+ {/* Simple CSS spinner */} +
+
+ Testing connection to {modelName}... +
) : isSuccess ? ( -
- +
+
+ +
+ Connection to {modelName} successful!
) : ( <>
-
- - Connection to {modelName} failed +
+ + Connection to {modelName} failed
- Error: - {errorMessage} + Error: + {errorMessage} {error && ( -
+
@@ -145,15 +168,17 @@ ${formattedBody}
{showDetails && ( -
-

Troubleshooting Details

+
+ Troubleshooting Details
                   {typeof error === 'string' ? error : JSON.stringify(error, null, 2)}
                 
@@ -161,19 +186,21 @@ ${formattedBody} )}
-

API Request

+ API Request
                 {curlCommand || "No request data available"}
               
)} - -
+ +
+ )}
);