From 5f5be9cde7c0b7ef917c3c4bacb42c6f625a3854 Mon Sep 17 00:00:00 2001 From: ochafik Date: Thu, 26 Sep 2024 05:06:11 +0100 Subject: [PATCH] `minja`: gcc tweaks --- common/common.h | 3 ++- common/minja.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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_) {