Files
FastGPT/projects/app/src/service/moduleDispatch/init/userChatInput.tsx
2023-11-24 15:29:43 +08:00

15 lines
428 B
TypeScript

import { ModuleInputKeyEnum } from '@fastgpt/global/core/module/constants';
import type { ModuleDispatchProps } from '@/types/core/chat/type';
export type UserChatInputProps = ModuleDispatchProps<{
[ModuleInputKeyEnum.userChatInput]: string;
}>;
export const dispatchChatInput = (props: Record<string, any>) => {
const {
inputs: { userChatInput }
} = props as UserChatInputProps;
return {
userChatInput
};
};