Skip to content

Commit f2e6d80

Browse files
authored
Expose script-order material matching in terms API
Pass match_materials_to_script through the terms endpoint so API callers can request script-ordered terms.
1 parent 8fdf9e1 commit f2e6d80

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎app/controllers/v1/llm.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def generate_video_terms(request: Request, body: VideoTermsRequest):
4444
video_subject=body.video_subject,
4545
video_script=body.video_script,
4646
amount=body.amount,
47+
match_script_order=body.match_materials_to_script,
4748
)
4849
response = {"video_terms": video_terms}
4950
return utils.get_response(200, response)

‎app/models/schema.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class VideoTermsParams:
168168
{
169169
"video_subject": "",
170170
"video_script": "",
171-
"amount": 5
171+
"amount": 5,
172+
"match_materials_to_script": false
172173
}
173174
"""
174175

@@ -177,6 +178,7 @@ class VideoTermsParams:
177178
"春天的花海,如诗如画般展现在眼前。万物复苏的季节里,大地披上了一袭绚丽多彩的盛装。金黄的迎春、粉嫩的樱花、洁白的梨花、艳丽的郁金香……"
178179
)
179180
amount: Optional[int] = 5
181+
match_materials_to_script: bool = False
180182

181183

182184
class VideoSocialMetadataParams:

0 commit comments

Comments
 (0)