update prompt version (#4242)

* sync collection

* remove lock

* update prompt version
This commit is contained in:
Archer
2025-03-20 00:19:12 +08:00
committed by archer
parent 8eec8566db
commit 9918133426
11 changed files with 54 additions and 57 deletions

View File

@@ -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 {
getQuestionGuideFooterPrompt,
getQuestionGuidePrompt
QuestionGuideFooterPrompt,
QuestionGuidePrompt
} from '@fastgpt/global/core/ai/prompt/agent';
// question generator config
@@ -168,7 +168,7 @@ const QGConfigModal = ({
}
}}
>
{customPrompt || getQuestionGuidePrompt()}
{customPrompt || QuestionGuidePrompt}
</Box>
</Box>
</>
@@ -178,8 +178,8 @@ const QGConfigModal = ({
{isOpenCustomPrompt && (
<CustomPromptEditor
defaultValue={customPrompt}
defaultPrompt={getQuestionGuidePrompt()}
footerPrompt={getQuestionGuideFooterPrompt()}
defaultPrompt={QuestionGuidePrompt}
footerPrompt={QuestionGuideFooterPrompt}
onChange={(e) => {
onChange({
...value,