import{_ as i,c as a,ae as n,o as e}from"./chunks/framework.BzDBnRMZ.js";const g=JSON.parse('{"title":"hunyuan","description":"","frontmatter":{"title":"hunyuan","order":100},"headers":[],"relativePath":"dev/api/hunyuan.md","filePath":"zh/dev/api/hunyuan.md","lastUpdated":1734175019000}'),t={name:"dev/api/hunyuan.md"};function h(p,s,l,k,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

模块 nonebot_plugin_marshoai.hunyuan


@genimage_cmd.handle()

async func genimage(event: Event, prompt = None)

源代码在GitHub上查看
python
@genimage_cmd.handle()
async def genimage(event: Event, prompt=None):
    if not prompt:
        await genimage_cmd.finish('无提示词')
    try:
        result = generate_image(prompt)
        url = json.loads(result)['ResultImage']
        await UniMessage.image(url=url).send()
    except Exception as e:
        traceback.print_exc()
`,5)]))}const E=i(t,[["render",h]]);export{g as __pageData,E as default};