From 6b0dc8fe67a5dc68119da95728a607d85a3f7b24 Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Fri, 1 Nov 2024 10:11:00 +0000 Subject: [PATCH] replace vectors of tokens with shorthands --- examples/server/utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index c2c2fac16..871a17a4f 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -439,14 +439,14 @@ static std::string gen_chatcmplid() { // other common utils // -static size_t longest_common_prefix(const std::vector & a, const std::vector & b) { +static size_t longest_common_prefix(const llama_tokens & a, const llama_tokens & b) { size_t i; for (i = 0; i < a.size() && i < b.size() && a[i] == b[i]; i++) {} return i; } -static size_t longest_common_subsequence(const std::vector & a, const std::vector & b) { +static size_t longest_common_subsequence(const llama_tokens & a, const llama_tokens & b) { // check for empty sequences if (a.empty() || b.empty()) { return 0;