From c12452c7aec8a02264afc00196a13caa591a13ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=A4=C3=9Fler?= Date: Wed, 8 May 2024 21:53:08 +0200 Subject: JSON: [key] -> .at(key), assert() -> GGML_ASSERT (#7143) --- common/json-schema-to-grammar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/json-schema-to-grammar.h') 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); -- cgit v1.2.3