Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
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
周成波
text2video-frontend
Commits
56fe5ac2
Commit
56fe5ac2
authored
Mar 02, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8e7ff379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.vue
src/views/home/index.vue
+2
-1
No files found.
src/views/home/index.vue
View file @
56fe5ac2
...
...
@@ -97,7 +97,8 @@ const onAdaptRoles = async () => {
const
attribute_options
=
default_data
.
role_attribute_options
.
map
(
option
=>
option
.
value
);
for
(
const
one_role
of
roles_arr
)
{
// const adapt_attribute_restrict = `根据这个故事:“${form.chatgpt_answer}”,你认为这个角色:“${one_role}”是“${String(attribute_options)}”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`;
const
adapt_attribute_restrict
=
`你认为这个角色:“
${
one_role
}
”是“
${
String
(
attribute_options
)}
”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`
;
// const adapt_attribute_restrict = `你认为这个角色:“${one_role}”是“${String(attribute_options)}”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`;
const
adapt_attribute_restrict
=
`故事全文:“
${
form
.
chatgpt_answer
}
”,请理解故事全文,然后判断:“
${
one_role
}
”是“
${
String
(
attribute_options
)}
”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`
;
let
attribute
=
await
text2videoService
.
submitLLM
(
adapt_attribute_restrict
,
role_keywords_llm
.
api
);
form
.
chatgpt_answer_roles
.
push
({
"角色"
:
one_role
.
trim
(),
...
...
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