Commit 10f18ed0 authored by nick zheng's avatar nick zheng

fix: 应用AI自动配置角色指令生成内容不匹配

parent 62e8993b
......@@ -366,7 +366,7 @@ async function handleSettingAgent(autoConfigInputValue: string) {
handleAIGenerateAgentAvatar(),
handleAIGeneratePreamble(),
handleAIGenerateFeaturedQuestions(),
handleAIGenerateAgentSystem(autoConfigInputValue),
handleAIGenerateAgentSystem(),
]).finally(() => {
isFullScreenLoading.value = false
})
......@@ -394,7 +394,7 @@ function handleSettingAgentSystem(agentSystem: string) {
isShowOptimizeAgentSystemModal.value = false
}
function handleAIGenerateAgentSystem(autoConfigInputValue: string) {
function handleAIGenerateAgentSystem() {
return new Promise((resolve, reject) => {
personalAppConfig.value.baseInfo.agentSystem = ''
generateAgentSystemController = new AbortController()
......@@ -402,7 +402,7 @@ function handleAIGenerateAgentSystem(autoConfigInputValue: string) {
fetchCustomEventSource({
path: '/api/rest/agentApplicationInfoRest/createAgentSystem.json',
payload: {
input: autoConfigInputValue || personalAppConfigStore.baseInfo.agentSystem,
input: personalAppConfigStore.baseInfo.agentTitle || personalAppConfigStore.baseInfo.agentSystem,
},
controller: generateAgentSystemController,
onMessage: (data: any) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment