Skip to content

Commit 7b28226

Browse files
committed
fix vae_path override in sd-server
1 parent daf5405 commit 7b28226

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/sd-server/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,11 @@ int main(int argc, char** argv) {
17581758
desired_config = state.default_config;
17591759
}
17601760

1761+
const bool has_vae_override = body.find("vae_path") != body.end();
1762+
if (!has_vae_override) {
1763+
desired_config.vae_path = state.default_config.vae_path;
1764+
}
1765+
17611766
std::string context_error;
17621767
if (!apply_context_overrides(body, desired_config, context_error)) {
17631768
auto response = make_error_response(context_error, collector);

0 commit comments

Comments
 (0)