diff --git a/src/js/config.js b/src/js/config.js index 1e55682ff1ecd681af815da4d2e754fa14689606..8861da853ac3800e6f2f9ce1a7d54b6bf8fcd7cd 100644 --- a/src/js/config.js +++ b/src/js/config.js @@ -20,7 +20,7 @@ export default { "prompt_template":"", "api_prompt_prefix":"", "show_profile_setting":false, - "common_sd_api": "https://api.quickapi.cloud/common-sd/", + "common_sd_api": "https://api.quickapi.cloud/temporary/sd/", }, diff --git a/src/js/sd.js b/src/js/sd.js index 04922f0c28db5d292c4cce666128b57e8021f3f5..a09591147aef48ef4cd2d400b708228c9d8f5c63 100644 --- a/src/js/sd.js +++ b/src/js/sd.js @@ -19,7 +19,7 @@ export default { }; let api = config?.sd_api - if (api.indexOf('sd/') === -1) { + if (api.indexOf('/sd') === -1) { api += '/sdapi/v1/txt2img' } axios.post(api, data, { headers }).then(response => {