Skip to content

Commit

Permalink
Update connect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rizzlogy authored Jun 4, 2024
1 parent 21697a5 commit 8c76da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ app.get("/api/v1/generateImage", async (req, res) => {
}

try {
const generateFunc =
var generateFunc =
typeModelLowerCase === "sdxl" ? generateImageSDXL : generateImage;
const typeModelConfig =
var typeModelConfig =
config.Model[
`validModels${typeModelLowerCase === "sdxl" ? "SDXL" : "Default"}`
][model];
const stylePresetConfig = stylePreset
var stylePresetConfig = stylePreset
? config.Model.validStylePresets[stylePreset]
: "";

Expand Down

0 comments on commit 8c76da4

Please sign in to comment.