ollama/llama/llama.cpp/common/json-schema-to-grammar.h
2024-12-20 16:56:03 -08:00

8 lines
211 B
C++
Vendored

#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);