mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-24 16:34:20 +08:00
Integrate Chat and Copilot into chat-sdk, and add SQL parse display (#166)
This commit is contained in:
14
webapp/packages/supersonic-fe/src/pages/ChatPage/index.tsx
Normal file
14
webapp/packages/supersonic-fe/src/pages/ChatPage/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useLocation } from 'umi';
|
||||
import { getToken } from '@/utils/utils';
|
||||
import { Chat } from 'supersonic-chat-sdk';
|
||||
|
||||
const ChatPage = () => {
|
||||
const location = useLocation();
|
||||
const { agentId } = (location as any).query;
|
||||
|
||||
return (
|
||||
<Chat initialAgentId={agentId ? +agentId : undefined} token={getToken() || ''} isDeveloper />
|
||||
);
|
||||
};
|
||||
|
||||
export default ChatPage;
|
||||
Reference in New Issue
Block a user