mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 09:03:53 +00:00
16 lines
399 B
TypeScript
16 lines
399 B
TypeScript
import { SystemInputEnum } from '@/constants/app';
|
|
import type { ModuleDispatchProps } from '@/types/core/modules';
|
|
|
|
export type UserChatInputProps = ModuleDispatchProps<{
|
|
[SystemInputEnum.userChatInput]: string;
|
|
}>;
|
|
|
|
export const dispatchChatInput = (props: Record<string, any>) => {
|
|
const {
|
|
inputs: { userChatInput }
|
|
} = props as UserChatInputProps;
|
|
return {
|
|
userChatInput
|
|
};
|
|
};
|