mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 20:27:45 +00:00
15 lines
428 B
TypeScript
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
|
|
};
|
|
};
|