From a49697b4885d3caf46068fc333d442a1827f70a4 Mon Sep 17 00:00:00 2001 From: HanishKVC Date: Wed, 8 May 2024 19:18:35 +0530 Subject: [PATCH] ChatON: Keep compiler happy simbly --- common/chaton.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/chaton.hpp b/common/chaton.hpp index c4ffd6e58..686466cf9 100644 --- a/common/chaton.hpp +++ b/common/chaton.hpp @@ -629,7 +629,7 @@ inline int32_t chaton_tmpl_apply_ex_capi( } // Copied from common.cpp -std::vector chaton_llama_tokenize( +inline std::vector chaton_llama_tokenize( const struct llama_model * model, const std::string & text, bool add_special, @@ -653,7 +653,7 @@ std::vector chaton_llama_tokenize( // inturn whether to parse special tokens in them or not (partsTypes). // If you want to parse special tokens in the taggedText, independent of what // partsTypes specifies, then set forceParseSpecial to true. -std::vector chaton_llama_tokenize_ex( +inline std::vector chaton_llama_tokenize_ex( const llama_context *ctx, const std::string &taggedText, const std::string &partsTypes,