feat: p2v_upload SEO 프롬프트 스키마와 입력 구성 추가
This commit is contained in:
1 parent
c7e1c4c81b
commit
1b700bd1bb
4 files changed
+76
No files matched your search
@@ -139,6 +139,23 @@ def get_ssul_upload_prompt() -> Prompt:
|
||||
)
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def get_p2v_upload_prompt() -> Prompt:
|
||||
"""P2V 무빙 포스터 SNS 업로드 SEO 프롬프트 (시트: p2v_upload).
|
||||
|
||||
get_ssul_upload_prompt 와 같은 이유로 lazy 다 — 시트가 아직 없어도 앱 기동은 살고
|
||||
P2V SEO 요청만 실패한다. _preload_all_sheets 목록에는 넣지 않는다.
|
||||
템플릿 변수: {event_name} {date_text} {place} {category} {keywords} {region_guess} {narration}
|
||||
"""
|
||||
from app.utils.prompts.schemas import P2vUploadPromptInput, P2vUploadPromptOutput
|
||||
|
||||
return Prompt(
|
||||
sheet_name="p2v_upload",
|
||||
prompt_input_class=P2vUploadPromptInput,
|
||||
prompt_output_class=P2vUploadPromptOutput,
|
||||
)
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def create_dynamic_subtitle_prompt(length: int, industry: str = "") -> Prompt:
|
||||
# industry 인자는 캐시 구분/하위 호환용. 시트는 단일 'subtitle'로 통합됨.
|
||||
|
||||
Reference in new issue
Block a user