iris / llama.cpp /common /json-schema-to-grammar.h
Mat17892's picture
llamacpp
b664585 verified
raw
history blame contribute delete
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);