privatellm / common /json-schema-to-grammar.h
lhhj
first
57e3690
raw
history blame
211 Bytes
#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);