remove commented code

This commit is contained in:
CJ Pais 2024-02-17 12:42:24 -08:00
parent 6d9fea6aae
commit 2f2973de78

View file

@ -704,11 +704,6 @@ struct llama_server_context
img_sl.id = img.count("id") != 0 ? img["id"].get<int>() : slot->images.size(); img_sl.id = img.count("id") != 0 ? img["id"].get<int>() : slot->images.size();
img_sl.img_data = clip_image_u8_init(); img_sl.img_data = clip_image_u8_init();
img_sl.img_data->buf = image_buffer; img_sl.img_data->buf = image_buffer;
// if (!clip_image_load_from_bytes(image_buffer.data(), image_buffer.size(), img_sl.img_data))
// {
// LOG_TEE("slot %i - failed to load image [id: %i]\n", slot->id, img_sl.id);
// return false;
// }
LOG_TEE("slot %i - loaded image\n", slot->id); LOG_TEE("slot %i - loaded image\n", slot->id);
img_sl.request_encode_image = true; img_sl.request_encode_image = true;
slot->images.push_back(img_sl); slot->images.push_back(img_sl);