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
ea312b4a
Commit
ea312b4a
authored
Oct 28, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 创建应用时AI自动配置生成的角色指令和实际输入要求不符 See merge request
!20
parents
65f36f06
2c5c2c37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app-setting.vue
...nal-space/personal-app-setting/components/app-setting.vue
+4
-4
No files found.
src/views/personal-space/personal-app-setting/components/app-setting.vue
View file @
ea312b4a
...
@@ -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
:
-1
0
px
!
important
;
bottom
:
-1
2
px
!
important
;
background
:
white
!
important
;
background
:
white
!
important
;
}
}
...
...
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