@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
15 lines (12 loc) • 459 B
text/typescript
import { MessageRoleType } from '@/types/message';
import { RenderAction } from '../types';
import { AssistantActionsBar } from './Assistant';
import { DefaultActionsBar } from './Fallback';
import { ToolActionsBar } from './Tool';
import { UserActionsBar } from './User';
export const renderActions: Record<MessageRoleType, RenderAction> = {
assistant: AssistantActionsBar,
system: DefaultActionsBar,
tool: ToolActionsBar,
user: UserActionsBar,
};