MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _build_video_text_input

Method _build_video_text_input

src/services/flow_client.py:1856–1864  ·  view source on GitHub ↗
(self, prompt: str, use_v2_model_config: bool = False)

Source from the content-addressed store, hash-verified

1854 return None
1855
1856 def _build_video_text_input(self, prompt: str, use_v2_model_config: bool = False) -> Dict[str, Any]:
1857 # 当前 Flow 上游视频链路统一使用 structuredPrompt,不再兼容旧 prompt 字段。
1858 return {
1859 "structuredPrompt": {
1860 "parts": [{
1861 "text": prompt
1862 }]
1863 }
1864 }
1865
1866 def _build_video_media_generation_context(self, batch_id: Optional[str] = None) -> Dict[str, Any]:
1867 return {

Calls

no outgoing calls

Tested by

no test coverage detected