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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;