File tree Expand file tree Collapse file tree 11 files changed +25
-16
lines changed Expand file tree Collapse file tree 11 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 55#include " log.h"
66#include " sampling.h"
77#include " chat.h"
8+ #include " json-schema-to-grammar.h"
89
910// fix problem with std::min and std::max
1011#if defined(_WIN32)
1516#include < windows.h>
1617#endif
1718
19+ #include < nlohmann/json.hpp>
20+
1821#include < algorithm>
1922#include < climits>
2023#include < cstdarg>
3437#include < future>
3538#endif
3639
37- #include " json-schema-to-grammar.h"
38-
3940using json = nlohmann::ordered_json;
4041
4142std::initializer_list<enum llama_example> mmproj_examples = {
Original file line number Diff line number Diff line change 44#include " json-partial.h"
55#include " regex-partial.h"
66
7- #include " nlohmann/json.hpp"
7+ #include < nlohmann/json.hpp>
88
99#include < optional>
1010#include < string>
Original file line number Diff line number Diff line change 11#include " json-schema-to-grammar.h"
22#include " common.h"
33
4+ #include < nlohmann/json.hpp>
5+
46#include < algorithm>
57#include < fstream>
68#include < map>
Original file line number Diff line number Diff line change 11#pragma once
22
33#include " ggml.h"
4+
45// Change JSON_ASSERT from assert() to GGML_ASSERT:
56#define JSON_ASSERT GGML_ASSERT
6- #include " nlohmann/json .hpp"
7+ #include < nlohmann/json_fwd .hpp>
78
89std::string json_schema_to_grammar (const nlohmann::ordered_json & schema,
910 bool force_gbnf = false );
Original file line number Diff line number Diff line change 77#include " ../src/unicode.h"
88#include " ../src/llama-grammar.h"
99
10+ #include < nlohmann/json.hpp>
11+
1012#include < cassert>
1113#include < string>
1214#include < vector>
Original file line number Diff line number Diff line change 66
77#include " ../src/llama-grammar.h"
88
9+ #include < nlohmann/json.hpp>
10+
911#include < cassert>
1012#include < fstream>
1113#include < sstream>
Original file line number Diff line number Diff line change 1+ #include " chat.h"
2+ #include " common.h"
3+ #include " llama-cpp.h"
4+ #include " log.h"
5+
6+ #include " linenoise.cpp/linenoise.h"
7+
8+ #include < nlohmann/json.hpp>
9+
110#if defined(_WIN32)
211# include < windows.h>
312# include < io.h>
2433#include < string>
2534#include < vector>
2635
27- #include " chat.h"
28- #include " common.h"
29- #include " llama-cpp.h"
30- #include " log.h"
31-
32- #include " nlohmann/json.hpp"
33- #include " linenoise.cpp/linenoise.h"
34-
3536#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(_WIN32)
3637[[noreturn]] static void sigint_handler (int ) {
3738 printf (" \n " LOG_COL_DEFAULT);
Original file line number Diff line number Diff line change 1313
1414// Change JSON_ASSERT from assert() to GGML_ASSERT:
1515#define JSON_ASSERT GGML_ASSERT
16- #include " nlohmann/json.hpp"
16+ #include < nlohmann/json.hpp>
1717// mime type for sending response
1818#define MIMETYPE_JSON " application/json; charset=utf-8"
1919
Original file line number Diff line number Diff line change 1313#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
1414// disable Nagle's algorithm
1515#define CPPHTTPLIB_TCP_NODELAY true
16- #include " httplib.h "
16+ #include < cpp- httplib/httplib.h >
1717
1818// Change JSON_ASSERT from assert() to GGML_ASSERT:
1919#define JSON_ASSERT GGML_ASSERT
20- #include " nlohmann/json.hpp"
20+ #include < nlohmann/json.hpp>
2121
2222#include < random>
2323#include < sstream>
Original file line number Diff line number Diff line change 66#include " log.h"
77#include " llama.h"
88
9- #include " nlohmann/json.hpp"
9+ #include < nlohmann/json.hpp>
1010
1111#include < algorithm>
1212#include < cmath>
You can’t perform that action at this time.
0 commit comments