feat: node prompt version (#4141)
* feat: node prompt version * fix * delete unused code * fix * fix code
This commit is contained in:
@@ -14,8 +14,8 @@ import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||
import AIModelSelector from '@/components/Select/AIModelSelector';
|
||||
import CustomPromptEditor from '@fastgpt/web/components/common/Textarea/CustomPromptEditor';
|
||||
import {
|
||||
PROMPT_QUESTION_GUIDE,
|
||||
PROMPT_QUESTION_GUIDE_FOOTER
|
||||
getQuestionGuideFooterPrompt,
|
||||
getQuestionGuidePrompt
|
||||
} from '@fastgpt/global/core/ai/prompt/agent';
|
||||
|
||||
// question generator config
|
||||
@@ -38,7 +38,7 @@ const QGConfig = ({
|
||||
return (
|
||||
<Flex alignItems={'center'}>
|
||||
<MyIcon name={'core/chat/QGFill'} mr={2} w={'20px'} />
|
||||
<FormLabel>{t('common:core.app.Question Guide')}</FormLabel>
|
||||
<FormLabel color={'myGray.600'}>{t('common:core.app.Question Guide')}</FormLabel>
|
||||
<ChatFunctionTip type={'nextQuestion'} />
|
||||
<Box flex={1} />
|
||||
<MyTooltip label={t('app:config_question_guide')}>
|
||||
@@ -168,7 +168,7 @@ const QGConfigModal = ({
|
||||
}
|
||||
}}
|
||||
>
|
||||
{customPrompt || PROMPT_QUESTION_GUIDE}
|
||||
{customPrompt || getQuestionGuidePrompt()}
|
||||
</Box>
|
||||
</Box>
|
||||
</>
|
||||
@@ -178,8 +178,8 @@ const QGConfigModal = ({
|
||||
{isOpenCustomPrompt && (
|
||||
<CustomPromptEditor
|
||||
defaultValue={customPrompt}
|
||||
defaultPrompt={PROMPT_QUESTION_GUIDE}
|
||||
footerPrompt={PROMPT_QUESTION_GUIDE_FOOTER}
|
||||
defaultPrompt={getQuestionGuidePrompt()}
|
||||
footerPrompt={getQuestionGuideFooterPrompt()}
|
||||
onChange={(e) => {
|
||||
onChange({
|
||||
...value,
|
||||
|
||||
Reference in New Issue
Block a user