From 2cd0097ba19c32a35ffa7b8b52f918522cbc46ed Mon Sep 17 00:00:00 2001 From: Larkspur-Wang Date: Sat, 19 Apr 2025 23:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E8=AF=8DLL?= =?UTF-8?q?M=E6=8F=90=E7=A4=BA=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/llm.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/services/llm.py b/app/services/llm.py index 2c45ef9..c1d8dfa 100644 --- a/app/services/llm.py +++ b/app/services/llm.py @@ -341,11 +341,12 @@ def generate_terms(video_subject: str, video_script: str, amount: int = 5) -> Li Generate {amount} search terms for stock videos, depending on the subject of a video. ## Constrains: -1. the search terms are to be returned as a json-array of strings. -2. each search term should consist of 1-3 words, always add the main subject of the video. -3. you must only return the json-array of strings. you must not return anything else. you must not return the script. -4. the search terms must be related to the subject of the video. -5. reply with english search terms only. +1. The search terms are to be returned as a json-array of strings. +2. Each search term should consist of 1-3 words, always add the main subject of the video. +3. You must only return the json-array of strings. You must not return anything else. You must not return the script. +4. The search terms must be related to the subject of the video, no people, could add some term related to universe, landscapes, and natural scenery. +5. The search terms must fit for Chinese older people for the video. +6. Reply with English search terms only. ## Output Example: ["search term 1", "search term 2", "search term 3","search term 4","search term 5"]