minja
: gcc tweaks
This commit is contained in:
parent
2eb29bf8b8
commit
5f5be9cde7
2 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "llama.h"
|
||||
|
||||
#include <functional>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#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();
|
||||
this->stop_words = stop_words;
|
||||
this->grammar_trigger_words = grammar_trigger_words;
|
||||
|
|
|
@ -435,7 +435,7 @@ public:
|
|||
};
|
||||
|
||||
template <>
|
||||
json Value::get<json>() const {
|
||||
inline json Value::get<json>() const {
|
||||
if (is_primitive()) return primitive_;
|
||||
if (is_null()) return json();
|
||||
if (array_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue