Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
940981b8
Commit
940981b8
authored
Oct 29, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 应用AI自动配置角色指令生成内容不匹配 See merge request
!28
parents
86300f53
10f18ed0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app-setting.vue
...nal-space/personal-app-setting/components/app-setting.vue
+3
-3
No files found.
src/views/personal-space/personal-app-setting/components/app-setting.vue
View file @
940981b8
...
...
@@ -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
:
autoConfigInputValu
e
||
personalAppConfigStore
.
baseInfo
.
agentSystem
,
input
:
personalAppConfigStore
.
baseInfo
.
agentTitl
e
||
personalAppConfigStore
.
baseInfo
.
agentSystem
,
},
controller
:
generateAgentSystemController
,
onMessage
:
(
data
:
any
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment