mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 18:48:55 +00:00
perf: prompt textarea (#625)
This commit is contained in:
@@ -62,7 +62,7 @@ const RenderHeaderContainer = React.memo(function RenderHeaderContainer({
|
||||
});
|
||||
|
||||
if (unconnected) {
|
||||
const msg = `【${item.name}】存在未填或未连接参数`;
|
||||
const msg = `【${t(item.name)}】存在未填或未连接参数`;
|
||||
|
||||
toast({
|
||||
status: 'warning',
|
||||
@@ -72,7 +72,7 @@ const RenderHeaderContainer = React.memo(function RenderHeaderContainer({
|
||||
}
|
||||
}
|
||||
return modules;
|
||||
}, [edges, nodes, toast]);
|
||||
}, [edges, nodes, t, toast]);
|
||||
|
||||
const { mutate: onclickSave, isLoading } = useRequest({
|
||||
mutationFn: async (modules: ModuleItemType[]) => {
|
||||
|
@@ -337,9 +337,8 @@ function ConfigForm({
|
||||
bg={'myWhite.400'}
|
||||
rows={5}
|
||||
placeholder={chatNodeSystemPromptTip}
|
||||
showSetModalModeIcon
|
||||
value={getValues('aiSettings.systemPrompt')}
|
||||
onChange={(e) => {
|
||||
defaultValue={getValues('aiSettings.systemPrompt')}
|
||||
onBlur={(e) => {
|
||||
setValue('aiSettings.systemPrompt', e.target.value || '');
|
||||
setRefresh(!refresh);
|
||||
}}
|
||||
|
Reference in New Issue
Block a user