Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/litellm-dashboard/eslint-metrics.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@typescript-eslint/no-explicit-any": 1991,
"complexity": 128,
"complexity": 129,
"max-depth": 59
}
1 change: 1 addition & 0 deletions ui/litellm-dashboard/src/app/chat/page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const { mockUseAuthorized, mockUseUISettings, mockUseUIConfig, mockReplace, stat
userRole: state.userRole,
userId: "user-1",
userEmail: "user@example.com",
premiumUser: false,
})),
mockUseUISettings: vi.fn(() => ({
data: { values: { enable_chat_ui: state.enableChatUI } },
Expand Down
3 changes: 2 additions & 1 deletion ui/litellm-dashboard/src/app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ChatPage from "@/components/chat/ChatPage";

// ChatPage uses useSearchParams() which requires a Suspense boundary for static export.
const ChatPageContent = () => {
const { accessToken, userRole, userId, userEmail } = useAuthorized();
const { accessToken, userRole, userId, userEmail, premiumUser } = useAuthorized();
const { data: uiSettings, isLoading: isUISettingsLoading } = useUISettings();
const { data: uiConfig } = useUIConfig();
const router = useRouter();
Expand All @@ -33,6 +33,7 @@ const ChatPageContent = () => {
userRole={userRole ?? ""}
userId={userId ?? ""}
userEmail={userEmail ?? ""}
premiumUser={premiumUser ?? false}
/>
);
};
Expand Down
Loading
Loading