feat: sd setting

This commit is contained in:
Dogtiti
2024-07-23 22:44:09 +08:00
parent 908ee0060f
commit 3935c725c9
6 changed files with 71 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { StabilityPath, StoreKey } from "@/app/constant";
import { Stability, StoreKey } from "@/app/constant";
import { getHeaders } from "@/app/client/api";
import { createPersistStore } from "@/app/utils/store";
import { nanoid } from "nanoid";
@@ -63,7 +63,7 @@ export const useSdStore = createPersistStore<
}
const headers = getHeaders();
delete headers["Content-Type"];
fetch(`/api/stability/${StabilityPath.GeneratePath}/${data.model}`, {
fetch(`/api/stability/${Stability.GeneratePath}/${data.model}`, {
method: "POST",
headers: {
...headers,