MCPcopy Create free account
hub / github.com/HisMax/RedInk / generate_image

Method generate_image

backend/generators/base.py:21–36  ·  view source on GitHub ↗

生成图片 Args: prompt: 提示词 **kwargs: 其他参数(如分辨率、宽高比等) Returns: 图片二进制数据

(
        self,
        prompt: str,
        **kwargs
    )

Source from the content-addressed store, hash-verified

19
20 @abstractmethod
21 def generate_image(
22 self,
23 prompt: str,
24 **kwargs
25 ) -> bytes:
26 """
27 生成图片
28
29 Args:
30 prompt: 提示词
31 **kwargs: 其他参数(如分辨率、宽高比等)
32
33 Returns:
34 图片二进制数据
35 """
36 pass
37
38 @abstractmethod
39 def validate_config(self) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected