mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 13:38:00 +00:00
v4.5.1-2 (#421)
This commit is contained in:
@@ -83,6 +83,7 @@ export type ComponentRef = {
|
||||
resetVariables: (data?: Record<string, any>) => void;
|
||||
resetHistory: (history: ChatSiteItemType[]) => void;
|
||||
scrollToBottom: (behavior?: 'smooth' | 'auto') => void;
|
||||
sendPrompt: (question: string) => void;
|
||||
};
|
||||
|
||||
enum FeedbackTypeEnum {
|
||||
@@ -452,7 +453,8 @@ const ChatBox = (
|
||||
setVariableInputFinish(!!e.length);
|
||||
setChatHistory(e);
|
||||
},
|
||||
scrollToBottom
|
||||
scrollToBottom,
|
||||
sendPrompt: (question: string) => handleSubmit((item) => sendPrompt(item, question))()
|
||||
}));
|
||||
|
||||
/* style start */
|
||||
|
Reference in New Issue
Block a user