add aiChat

This commit is contained in:
Timi
2026-09-20 12:03:03 +08:00
parent 3d2968cb3b
commit b435bf992e
8 changed files with 1782 additions and 2 deletions
+42 -2
View File
@@ -10,6 +10,12 @@ import NotifyEditor from "./notify-editor";
import NotifyView from "./notify-view";
import BottomPopup from "./bottom-popup";
import Space from "./space";
import {
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
} from "./ai";
export default [
RootLayout,
@@ -22,7 +28,11 @@ export default [
NotifyEditor,
NotifyView,
BottomPopup,
Space
Space,
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
];
export {
@@ -36,9 +46,39 @@ export {
NotifyEditor,
NotifyView,
BottomPopup,
Space
Space,
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
};
export {
AiChatHttpError,
AiChatStreamError,
ensureChatResponse,
parseAssistantResponse,
parseSseData,
readSseStream,
useAiChat
} from "./ai";
export type {
AiChatCitationFormatter,
AiChatErrorMessages,
AiChatEventAction,
AiChatMessage,
AiChatMessageStatusFormatter,
AiChatRequestContext,
AiChatRoleNameFormatter,
AiChatRoleNames,
AiChatStreamEvent,
AiCitation,
AiMessageRole,
AiThinking,
UseAiChatOptions
} from "./ai";
export type {
SpaceAlign,
SpaceDirection,