Skip to content

Commit 6b0dc8f

Browse files
authored
replace vectors of tokens with shorthands
1 parent 521242f commit 6b0dc8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,14 @@ static std::string gen_chatcmplid() {
439439
// other common utils
440440
//
441441

442-
static size_t longest_common_prefix(const std::vector<llama_token> & a, const std::vector<llama_token> & b) {
442+
static size_t longest_common_prefix(const llama_tokens & a, const llama_tokens & b) {
443443
size_t i;
444444
for (i = 0; i < a.size() && i < b.size() && a[i] == b[i]; i++) {}
445445

446446
return i;
447447
}
448448

449-
static size_t longest_common_subsequence(const std::vector<llama_token> & a, const std::vector<llama_token> & b) {
449+
static size_t longest_common_subsequence(const llama_tokens & a, const llama_tokens & b) {
450450
// check for empty sequences
451451
if (a.empty() || b.empty()) {
452452
return 0;

0 commit comments

Comments
 (0)