From dfd4eb3aa6111a7b40fbb13b958be664c0250e08 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Fri, 12 Apr 2024 14:01:19 +0100 Subject: [PATCH] json: rm useless assert & ggml.h import --- common/json-schema-to-grammar.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/json-schema-to-grammar.cpp b/common/json-schema-to-grammar.cpp index 5e8547374..0f8f1b1d4 100644 --- a/common/json-schema-to-grammar.cpp +++ b/common/json-schema-to-grammar.cpp @@ -8,7 +8,6 @@ #include #include #include -#include "ggml.h" using json = nlohmann::ordered_json; @@ -48,7 +47,6 @@ static std::string build_repetition(const std::string & item_rule, int min_items } else { std::string res = repeat("(" + content + " ", up_to_n); // strip trailing space - GGML_ASSERT(!res.empty()); res = res.substr(0, res.length() - 1); res += repeat(")?", up_to_n); return res;