minja: gcc tweaks

This commit is contained in:
ochafik 2024-09-26 05:06:11 +01:00
parent 2eb29bf8b8
commit 5f5be9cde7
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include "llama.h" #include "llama.h"
#include <functional>
#include <queue> #include <queue>
#include <string> #include <string>
#include <vector> #include <vector>
@ -657,7 +658,7 @@ private:
); );
} }
void build(const std::function<std::vector<llama_token>(const std::string)> & tokenizer, const std::vector<std::string> & stop_words, const std::vector<std::string> & grammar_trigger_words) { void build(const std::function<std::vector<llama_token>(const std::string &)> & tokenizer, const std::vector<std::string> & stop_words, const std::vector<std::string> & grammar_trigger_words) {
clear(); clear();
this->stop_words = stop_words; this->stop_words = stop_words;
this->grammar_trigger_words = grammar_trigger_words; this->grammar_trigger_words = grammar_trigger_words;

View File

@ -435,7 +435,7 @@ public:
}; };
template <> template <>
json Value::get<json>() const { inline json Value::get<json>() const {
if (is_primitive()) return primitive_; if (is_primitive()) return primitive_;
if (is_null()) return json(); if (is_null()) return json();
if (array_) { if (array_) {