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
effaae97
Commit
effaae97
authored
Sep 23, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 应用开场白AI生成增加角色指令字段
parent
2d5ea064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
agent-application.ts
src/apis/agent-application.ts
+2
-2
app-setting.vue
...nal-space/personal-app-setting/components/app-setting.vue
+1
-0
No files found.
src/apis/agent-application.ts
View file @
effaae97
...
@@ -88,10 +88,10 @@ export function fetchCreateAgentAvatar<T>(payload: { agentTitle: string; agentDe
...
@@ -88,10 +88,10 @@ export function fetchCreateAgentAvatar<T>(payload: { agentTitle: string; agentDe
}
}
/**
/**
* * @param { agentTitle: 标题 agentDesc: 描述 }
* * @param { agentTitle: 标题 agentDesc: 描述
agentSystem: 指令
}
* @returns AI生成开场白
* @returns AI生成开场白
*/
*/
export
function
fetchCreatePreamble
<
T
>
(
payload
:
{
agentTitle
:
string
;
agentDesc
:
string
})
{
export
function
fetchCreatePreamble
<
T
>
(
payload
:
{
agentTitle
:
string
;
agentDesc
:
string
;
agentSystem
:
string
})
{
return
request
.
post
<
T
>
(
'/agentApplicationInfoRest/createPreamble.json'
,
payload
,
{
return
request
.
post
<
T
>
(
'/agentApplicationInfoRest/createPreamble.json'
,
payload
,
{
timeout
:
120000
,
timeout
:
120000
,
})
})
...
...
src/views/personal-space/personal-app-setting/components/app-setting.vue
View file @
effaae97
...
@@ -198,6 +198,7 @@ async function handleAIGeneratePreamble() {
...
@@ -198,6 +198,7 @@ async function handleAIGeneratePreamble() {
const
res
=
await
fetchCreatePreamble
<
string
>
({
const
res
=
await
fetchCreatePreamble
<
string
>
({
agentTitle
:
personalAppConfig
.
value
.
baseInfo
.
agentTitle
,
agentTitle
:
personalAppConfig
.
value
.
baseInfo
.
agentTitle
,
agentDesc
:
personalAppConfig
.
value
.
baseInfo
.
agentDesc
,
agentDesc
:
personalAppConfig
.
value
.
baseInfo
.
agentDesc
,
agentSystem
:
personalAppConfig
.
value
.
baseInfo
.
agentSystem
,
}).
finally
(()
=>
(
generatePreambleLoading
.
value
=
false
))
}).
finally
(()
=>
(
generatePreambleLoading
.
value
=
false
))
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
...
...
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