JSON: [key] -> .at(key), assert() -> GGML_ASSERT (#7143)

This commit is contained in:
Johannes Gäßler 2024-05-08 21:53:08 +02:00 committed by GitHub
parent 9da243b36a
commit c12452c7ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 45 deletions

View file

@ -1,4 +1,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);