Skip to content

Commit 6cabd95

Browse files
committed
server: fix param parsing
1 parent e897170 commit 6cabd95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/server/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ bool parseJsonPrompt(std::string json_str, SDParams* params) {
887887
} catch (...) {
888888
}
889889
try {
890-
float cfg_scale = slg["scale"];
891-
params->lastRequest.cfg_scale = cfg_scale;
890+
float slg_scale = slg["scale"];
891+
params->lastRequest.slg_scale = slg_scale;
892892
} catch (...) {
893893
}
894894
try {
@@ -1229,7 +1229,6 @@ bool parseJsonPrompt(std::string json_str, SDParams* params) {
12291229
}
12301230
} catch (...) {
12311231
}
1232-
// TODO SLG and APG params
12331232
return updatectx;
12341233
}
12351234

0 commit comments

Comments
 (0)