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

Method _acquire_image_launch_gate

src/services/flow_client.py:1018–1024  ·  view source on GitHub ↗

图片请求不再做本地发车排队,直接进入取 token 并提交上游。

(
        self,
        token_id: Optional[int],
        token_image_concurrency: Optional[int],
    )

Source from the content-addressed store, hash-verified

1016 raise Exception(f"Flow video API request timed out after {timeout}s") from exc
1017
1018 async def _acquire_image_launch_gate(
1019 self,
1020 token_id: Optional[int],
1021 token_image_concurrency: Optional[int],
1022 ) -> tuple[bool, int, int]:
1023 """图片请求不再做本地发车排队,直接进入取 token 并提交上游。"""
1024 return True, 0, 0
1025
1026 async def _release_image_launch_gate(self, token_id: Optional[int]):
1027 """保留接口形状,当前无需释放任何本地发车状态。"""

Callers 1

generate_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected