fix: custom t2i

This commit is contained in:
Soulter
2024-09-14 08:21:34 -04:00
parent e3b2396f32
commit 5f0f5398e8
+3 -1
View File
@@ -21,7 +21,9 @@ class TextToImageRenderer:
@example: 参见 https://astrbot.soulter.top 插件开发部分。
'''
await self.network_strategy.render_custom_template(**locals())
local = locals()
local.pop('self')
return await self.network_strategy.render_custom_template(**local)
async def render(self, text: str, use_network: bool = True, return_url: bool = False):
'''使用默认文转图模板。