Skip to content

Commit

Permalink
[feat] 스크립트 변형
Browse files Browse the repository at this point in the history
  • Loading branch information
jainefer committed Feb 19, 2024
1 parent 3bcba04 commit 30f845b
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions src/services/chatGPT.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,7 @@ export const chatGPTCall = async (scriptText) => {
// ChatGPT에 전달할 프롬프트를 구성합니다.
const system_prompt =
`Step 1. Look at the example Json given with the original script and give it to me in json. "subheading" is to break up the paragraphs of the given script according to the subtopics. The name of subheading is the title of the subtopic, and subheading.content should keep the original script divided according to the subtopic. subheading.name and subheading.content should be different. Add the contents in subheading together and we need to divide them so that the original script comes out. This subheading should be able to be at least 1 to highest 10 and contain all of the divided scripts. "tag" is the keyword for the overall scripts. Please indicate at least 2 to 5. The result should be in Korean. You need to have the above conditions and give them to the Json example below
{
"subheading": [
{
"name": "Subtitle 1",
"start_time": "script1 start time,"
"end_time": "script 1 end time",
"content": "script 1"
},{
"name": "Subtitle 2",
"start_time": "script2 start time,"
"end_time": "script 2 end time",
"content": "script 2"
}
],
"tag": [
{
"name": "Tag 1"
},
{
"name": "Tag 2"
},
{
"name": "Tag 3"
}
]
}
{"subheading": [{"name": "Subtitle 1","start_time": "script1 start time,""end_time": "script 1 end time","content": "script 1"},{"name": "Subtitle 2","start_time": "script2 start time","end_time": "script 2 end time","content": "script 2"}],"tag": [{"name": "Tag 1"},{"name": "Tag 2"},{"name": "Tag 3"}]}
`;

const prompt = `Run this script from step 1 , Make sure to fulfill the condition given to the system promport. original script: ${scriptText}\n ` ;
Expand Down

0 comments on commit 30f845b

Please sign in to comment.