mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 21:44:59 +08:00
feat: sd setting
This commit is contained in:
@@ -39,8 +39,6 @@ const DEFAULT_ALIBABA_URL = isApp
|
||||
? DEFAULT_API_HOST + "/api/proxy/alibaba"
|
||||
: ApiPath.Alibaba;
|
||||
|
||||
console.log("DEFAULT_ANTHROPIC_URL", DEFAULT_ANTHROPIC_URL);
|
||||
|
||||
const DEFAULT_ACCESS_STATE = {
|
||||
accessCode: "",
|
||||
useCustomConfig: false,
|
||||
@@ -80,6 +78,10 @@ const DEFAULT_ACCESS_STATE = {
|
||||
alibabaUrl: DEFAULT_ALIBABA_URL,
|
||||
alibabaApiKey: "",
|
||||
|
||||
//stability
|
||||
stabilityUrl: "",
|
||||
stabilityApiKey: "",
|
||||
|
||||
// server config
|
||||
needCode: true,
|
||||
hideUserApiKey: false,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user