Integrate Chat and Copilot into chat-sdk, and add SQL parse display (#166)

This commit is contained in:
williamhliu
2023-10-02 18:05:12 +08:00
committed by GitHub
parent 741ed4191b
commit 71cb20eb4f
68 changed files with 1353 additions and 882 deletions

View File

@@ -1,16 +1,15 @@
import './styles/index.less';
// import React from 'react';
// import ReactDOM from 'react-dom/client';
// import Chat from './demo/Chat';
// import ChatDemo from './demo/ChatDemo';
// import CopilotDemo from './demo/CopilotDemo';
// const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
// root.render(<ChatDemo />);
// root.render(
// <React.StrictMode>
// <Chat />
// </React.StrictMode>
// );
export { default as Chat } from './Chat';
export { default as Copilot } from './Copilot';
export { default as ChatMsg } from './components/ChatMsg';
@@ -33,6 +32,7 @@ export type {
FilterItemType,
HistoryType,
HistoryMsgItemType,
SendMsgParamsType,
} from './common/type';
export { getHistoryMsg, searchRecommend, queryContext } from './service';