Skip to content

Commit ba0a789

Browse files
committed
fix small order of operation mistake
1 parent 7aac5ba commit ba0a789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ void start_server(SDParams params) {
17471747
bool updateCTX = params.ctxParams.free_params_immediately;
17481748
try {
17491749
std::string json_str = req.body;
1750-
updateCTX = updateCTX || parseJsonPrompt(json_str, &params);
1750+
updateCTX = parseJsonPrompt(json_str, &params) || updateCTX;
17511751
} catch (json::parse_error& e) {
17521752
// assume the request is just a prompt
17531753
// LOG_WARN("Failed to parse json: %s\n Assuming it's just a prompt...\n", e.what());

0 commit comments

Comments
 (0)