From 9740824ba500fd6103dbaa38f906966d28038027 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 19 Oct 2023 14:44:37 +0300 Subject: [PATCH] server : snake case --- examples/server/server.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 5d2e165b8..ed7d1f2dc 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -871,7 +871,7 @@ struct llama_server_context return slot.has_next_token; // continue } - bool processImages(llama_client_slot &slot) const + bool process_images(llama_client_slot &slot) const { for (slot_image &img : slot.images) { @@ -969,6 +969,7 @@ struct llama_server_context slot.n_past += 1; } } + return true; } @@ -1160,7 +1161,7 @@ struct llama_server_context {"to_eval", tokens_to_str(ctx, slot.cache_tokens.cbegin() + slot.n_past, slot.cache_tokens.cend())}, }); - const bool has_images = processImages(slot); // has images? + const bool has_images = process_images(slot); // has images? // process the prefix of first image std::vector prefix_tokens = has_images ? tokenize(slot.images[0].prefix_prompt, true) : prompt_tokens;