llama: enable JSON schema key ordering for generating grammars (#8055)

This commit is contained in:
Parth Sareen
2024-12-11 17:17:36 -08:00
committed by GitHub
parent b1fd7fef86
commit 18f6a98bd6
3 changed files with 24 additions and 6 deletions

View File

@@ -417,7 +417,7 @@ class SchemaConverter {
private:
std::function<json(const std::string &)> _fetch_json;
bool _dotall;
std::map<std::string, std::string> _rules;
std::unordered_map<std::string, std::string> _rules;
std::unordered_map<std::string, json> _refs;
std::unordered_set<std::string> _refs_being_resolved;
std::vector<std::string> _errors;