Skip to content

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]

fix(navbar.tsx): only show 'get enterprise license' if user is not already a premium user (#5568)

Krish Dholakiae4dcd6f74522
diff --git a/.gitignore b/.gitignore
index 67aa57bb3eb..a24bd49201c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,3 +64,4 @@ litellm/proxy/_experimental/out/onboarding/index.html
litellm/tests/log.txt
litellm/tests/langfuse.log
litellm/tests/langfuse.log
+litellm/proxy/google-cloud-sdk/*
diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsx
index b35d99cad3f..3b713b27e76 100644
--- a/ui/litellm-dashboard/src/app/page.tsx
+++ b/ui/litellm-dashboard/src/app/page.tsx
@@ -157,8 +157,7 @@ const CreateKeyPage = () => {
<Navbar
userID={userID}
userRole={userRole}
- userEmail={userEmail}
- showSSOBanner={showSSOBanner}
+ userEmail={userEmail}
premiumUser={premiumUser}
setProxySettings={setProxySettings}
proxySettings={proxySettings}
diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsx
index 4d1e387717c..beeb5fb70c8 100644
--- a/ui/litellm-dashboard/src/components/navbar.tsx
+++ b/ui/litellm-dashboard/src/components/navbar.tsx
@@ -22,7 +22,6 @@ interface NavbarProps {
userID: string | null;
userRole: string | null;
userEmail: string | null;
- showSSOBanner: boolean;
premiumUser: boolean;
setProxySettings: React.Dispatch<React.SetStateAction<any>>;
proxySettings: any;
@@ -31,14 +30,12 @@ const Navbar: React.FC<NavbarProps> = ({
userID,
userRole,
userEmail,
- showSSOBanner,
premiumUser,
setProxySettings,
proxySettings,
}) => {
console.log("User ID:", userID);
console.log("userEmail:", userEmail);
- console.log("showSSOBanner:", showSSOBanner);
console.log("premiumUser:", premiumUser);
// const userColors = require('./ui_colors.json') || {};
@@ -102,7 +99,7 @@ const Navbar: React.FC<NavbarProps> = ({
</div>
</div>
<div className="text-right mx-4 my-2 absolute top-0 right-0 flex items-center justify-end space-x-2">
- {showSSOBanner ? (
+ {premiumUser ? null : (
<div
style={{
// border: '1px solid #391085',
@@ -121,7 +118,7 @@ const Navbar: React.FC<NavbarProps> = ({
Get enterprise license
</a>
</div>
- ) : null}
+ )}
<div
style={{