diff options
author | Johannes Gäßler <johannesg@5d6.de> | 2024-05-08 21:53:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 21:53:08 +0200 |
commit | c12452c7aec8a02264afc00196a13caa591a13ac (patch) | |
tree | 59fb7c3e827b71dac73312194cb24592eebac7a0 /common/json-schema-to-grammar.h | |
parent | 9da243b36ac0b9d609adfaaa4c8f1cc8c592f737 (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.h | 4 |
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); |