summaryrefslogtreecommitdiff
path: root/common/json-schema-to-grammar.h
blob: 41623b34645287ab14a24bcb729c79141129cf77 (plain)
1
2
3
4
5
6
7
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);