Files
AIGC/demo/deploy_baota/frontend/static/promptOptimizer-dc3175a2.js
2025-11-13 17:01:39 +08:00

2 lines
307 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{a as r}from"./index-2fb4354b.js";const e=async(t,o="text-to-video")=>{if(!t||!t.trim())throw new Error("提示词不能为空");if(t.length>2e3)throw new Error("提示词过长请控制在2000字符以内");return r.post("/prompt/optimize",{prompt:t.trim(),type:o},{timeout:3e4})};export{e as o};