llama.cpp
72114edf - json-schema-to-grammar : fix order of props + non-str const/enum (#6232)

Commit
1 year ago
json-schema-to-grammar : fix order of props + non-str const/enum (#6232) * json: ordered json in server/schema converter to respect orig order * json: ws nits * json: support non-string const / enums
Author
Parents
  • common
    • File
      json-schema-to-grammar.cpp
    • File
      json-schema-to-grammar.h
  • examples
    • File
      json-schema-to-grammar.py
    • server
      • File
        json-schema-to-grammar.mjs.hpp
      • public
        • File
          json-schema-to-grammar.mjs
      • File
        server.cpp
      • File
        utils.hpp
  • tests
    • File
      test-json-schema-to-grammar.cpp