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;