精简表单

This commit is contained in:
2023-06-23 03:33:37 +08:00
parent 0be4a4bff6
commit ac45eafc87
2 changed files with 16 additions and 4 deletions

View File

@@ -137,9 +137,6 @@ func ImagesPost(w http.ResponseWriter, r *http.Request) {
if template.CfgScale > 20 {
template.CfgScale = 20
}
if template.SamplerName == "" {
template.SamplerName = "DDIM"
}
if template.ModelID <= 0 {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte("model_id 参数不能为空"))