summaryrefslogtreecommitdiff
path: root/common/json-schema-to-grammar.h
diff options
context:
space:
mode:
authorJohannes Gäßler <johannesg@5d6.de>2024-05-08 21:53:08 +0200
committerGitHub <noreply@github.com>2024-05-08 21:53:08 +0200
commitc12452c7aec8a02264afc00196a13caa591a13ac (patch)
tree59fb7c3e827b71dac73312194cb24592eebac7a0 /common/json-schema-to-grammar.h
parent9da243b36ac0b9d609adfaaa4c8f1cc8c592f737 (diff)
JSON: [key] -> .at(key), assert() -> GGML_ASSERT (#7143)
Diffstat (limited to 'common/json-schema-to-grammar.h')
-rw-r--r--common/json-schema-to-grammar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/json-schema-to-grammar.h b/common/json-schema-to-grammar.h
index e1abed30..41623b34 100644
--- a/common/json-schema-to-grammar.h
+++ b/common/json-schema-to-grammar.h
@@ -1,4 +1,8 @@
#pragma once
+
+#include "ggml.h"
+// Change JSON_ASSERT from assert() to GGML_ASSERT:
+#define JSON_ASSERT GGML_ASSERT
#include "json.hpp"
std::string json_schema_to_grammar(const nlohmann::ordered_json& schema);