Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a7f307a

Browse files
committed
turn off multi modal
1 parent 14e0120 commit a7f307a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/llamaCPP.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ void llamaCPP::chatCompletion(
246246
} else if (content_piece_type == "image_url") {
247247
auto image_url = content_piece["image_url"]["url"].asString();
248248
auto base64_image_data = nitro_utils::extractBase64(image_url);
249+
LOG_INFO << base64_image_data;
249250
formatted_output += "[img-" + std::to_string(no_images) + "]";
250251

251252
json content_piece_image_data;
@@ -406,6 +407,7 @@ void llamaCPP::unloadModel(
406407
llama_free_model(llama.model);
407408
llama.ctx = nullptr;
408409
llama.model = nullptr;
410+
multi_modal = false;
409411
jsonResp["message"] = "Model unloaded successfully";
410412
}
411413
auto resp = nitro_utils::nitroHttpJsonResponse(jsonResp);

0 commit comments

Comments
 (0)