mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
llama: enable JSON schema key ordering for generating grammars (#8055)
This commit is contained in:
parent
b1fd7fef86
commit
18f6a98bd6
3 changed files with 24 additions and 6 deletions
2
llama/json-schema-to-grammar.cpp
vendored
2
llama/json-schema-to-grammar.cpp
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue