Commit ea312b4a authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

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

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