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;