fixed conflicts

This commit is contained in:
RockYang
2024-05-06 14:44:09 +08:00
31 changed files with 289 additions and 172 deletions

View File

@@ -188,6 +188,11 @@ func (h *FunctionHandler) Dall3(c *gin.Context) {
return
}
if user.Power < h.App.SysConfig.DallPower {
resp.ERROR(c, "创建 DALL-E 绘图任务失败,算力不足")
return
}
// create dall task
prompt := utils.InterfaceToString(params["prompt"])
job := model.DallJob{