diff options
author | Olivier Chafik <ochafik@users.noreply.github.com> | 2024-03-22 13:07:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 15:07:44 +0200 |
commit | 72114edf068a9b2f54d3b09e9a198f611be397e8 (patch) | |
tree | 0614f917e7ecd6a9c86dbcebd43ce4161dea8997 /examples/server/utils.hpp | |
parent | 2f0e81e053b41ca28e73a841e7bdbf9820baaa57 (diff) |
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
Diffstat (limited to 'examples/server/utils.hpp')
-rw-r--r-- | examples/server/utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index ff146893..d7eef556 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -12,7 +12,7 @@ #define DEFAULT_OAICOMPAT_MODEL "gpt-3.5-turbo-0613" -using json = nlohmann::json; +using json = nlohmann::ordered_json; // https://community.openai.com/t/openai-chat-list-of-error-codes-and-types/357791/11 enum error_type { |