diff --git a/common/common.h b/common/common.h index 64a20f6a0..0f0817e6d 100644 --- a/common/common.h +++ b/common/common.h @@ -4,6 +4,7 @@ #include "llama.h" +#include #include #include #include @@ -657,7 +658,7 @@ private: ); } - void build(const std::function(const std::string)> & tokenizer, const std::vector & stop_words, const std::vector & grammar_trigger_words) { + void build(const std::function(const std::string &)> & tokenizer, const std::vector & stop_words, const std::vector & grammar_trigger_words) { clear(); this->stop_words = stop_words; this->grammar_trigger_words = grammar_trigger_words; diff --git a/common/minja.hpp b/common/minja.hpp index 9f52f112b..661f9c3c7 100644 --- a/common/minja.hpp +++ b/common/minja.hpp @@ -435,7 +435,7 @@ public: }; template <> -json Value::get() const { +inline json Value::get() const { if (is_primitive()) return primitive_; if (is_null()) return json(); if (array_) {