Skip to content

Commit 5f5be9c

Browse files
author
ochafik
committed
minja: gcc tweaks
1 parent 2eb29bf commit 5f5be9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "llama.h"
66

7+
#include <functional>
78
#include <queue>
89
#include <string>
910
#include <vector>
@@ -657,7 +658,7 @@ class llama_antiprompts {
657658
);
658659
}
659660

660-
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) {
661+
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) {
661662
clear();
662663
this->stop_words = stop_words;
663664
this->grammar_trigger_words = grammar_trigger_words;

common/minja.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class Value : public std::enable_shared_from_this<Value> {
435435
};
436436

437437
template <>
438-
json Value::get<json>() const {
438+
inline json Value::get<json>() const {
439439
if (is_primitive()) return primitive_;
440440
if (is_null()) return json();
441441
if (array_) {

0 commit comments

Comments
 (0)