This commit is contained in:
2023-06-05 10:22:37 +08:00
parent 011805869f
commit baa020f6ab

View File

@@ -28,6 +28,7 @@ func ParamsModelsGet(w http.ResponseWriter, r *http.Request) {
params["type"] = []string{"lora", "ckp", "hyper", "ti"} params["type"] = []string{"lora", "ckp", "hyper", "ti"}
params["status"] = []string{"pending", "running", "finished", "failed"} params["status"] = []string{"pending", "running", "finished", "failed"}
params["base_model"] = []string{"SD1.5", "SD2"} params["base_model"] = []string{"SD1.5", "SD2"}
params["size"] = []string{"512x512", "768x768", "1024x768"}
w.Header().Set("Content-Type", "application/json; charset=utf-8") w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Write(utils.ToJSON(params)) w.Write(utils.ToJSON(params))
} }