Commit 2c5c2c37 authored by nick zheng's avatar nick zheng

fix: 创建应用时AI自动配置生成的角色指令和实际输入要求不符

parent 65f36f06
......@@ -366,7 +366,7 @@ async function handleSettingAgent(autoConfigInputValue: string) {
handleAIGenerateAgentAvatar(),
handleAIGeneratePreamble(),
handleAIGenerateFeaturedQuestions(),
handleAIGenerateAgentSystem(),
handleAIGenerateAgentSystem(autoConfigInputValue),
]).finally(() => {
isFullScreenLoading.value = false
})
......@@ -394,7 +394,7 @@ function handleSettingAgentSystem(agentSystem: string) {
isShowOptimizeAgentSystemModal.value = false
}
function handleAIGenerateAgentSystem() {
function handleAIGenerateAgentSystem(autoConfigInputValue: string) {
return new Promise((resolve, reject) => {
personalAppConfig.value.baseInfo.agentSystem = ''
generateAgentSystemController = new AbortController()
......@@ -402,7 +402,7 @@ function handleAIGenerateAgentSystem() {
fetchCustomEventSource({
path: '/api/rest/agentApplicationInfoRest/createAgentSystem.json',
payload: {
input: personalAppConfigStore.baseInfo.agentSystem,
input: personalAppConfigStore.baseInfo.agentSystem || autoConfigInputValue,
},
controller: generateAgentSystemController,
onMessage: (data: any) => {
......@@ -1144,7 +1144,7 @@ function handleDiversityModeChange(diversityModeItem: DiversityModeItem) {
}
:deep(.prompt-input .n-input-word-count) {
bottom: -10px !important;
bottom: -12px !important;
background: white !important;
}
......
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