mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
feat(ui): add /chat route wired to ChatPage
This commit is contained in:
parent
a906baa60c
commit
8101227084
1 changed files with 19 additions and 0 deletions
19
ui/litellm-dashboard/src/app/chat/page.tsx
Normal file
19
ui/litellm-dashboard/src/app/chat/page.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"use client";
|
||||
|
||||
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
|
||||
import ChatPage from "@/components/chat/ChatPage";
|
||||
|
||||
const ChatPageRoute = () => {
|
||||
const { accessToken, userRole, userId, userEmail } = useAuthorized();
|
||||
|
||||
return (
|
||||
<ChatPage
|
||||
accessToken={accessToken ?? ""}
|
||||
userRole={userRole ?? ""}
|
||||
userId={userId ?? ""}
|
||||
userEmail={userEmail ?? ""}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default ChatPageRoute;
|
||||
Loading…
Add table
Reference in a new issue