File tree Expand file tree Collapse file tree 11 files changed +21
-25
lines changed Expand file tree Collapse file tree 11 files changed +21
-25
lines changed Original file line number Diff line number Diff line change 1- #include " gguf.h" // for reading GGUF splits
21#include " arg.h"
32
3+ #include " chat.h"
44#include " common.h"
5+ #include " gguf.h" // for reading GGUF splits
6+ #include " json-schema-to-grammar.h"
57#include " log.h"
68#include " sampling.h"
7- #include " chat.h"
8- #include " json-schema-to-grammar.h"
99
1010// fix problem with std::min and std::max
1111#if defined(_WIN32)
1616#include < windows.h>
1717#endif
1818
19+ #define JSON_ASSERT GGML_ASSERT
1920#include < nlohmann/json.hpp>
2021
2122#include < algorithm>
Original file line number Diff line number Diff line change 11#include " chat.h"
22#include " chat-parser.h"
33#include " common.h"
4+ #include " json-partial.h"
45#include " json-schema-to-grammar.h"
56#include " log.h"
6- #include " json-partial.h"
7- #include " minja/chat-template.hpp"
8- #include " minja/minja.hpp"
97#include " regex-partial.h"
108
9+ #include < minja/chat-template.hpp>
10+ #include < minja/minja.hpp>
11+
1112#include < cstdio>
1213#include < exception>
1314#include < iostream>
1617#include < string>
1718#include < vector>
1819
19-
2020static std::string format_time (const std::chrono::system_clock::time_point & now, const std::string & format) {
2121 auto time = std::chrono::system_clock::to_time_t (now);
2222 auto local_time = *std::localtime (&time);
Original file line number Diff line number Diff line change 1- #include < json-partial.h>
2- # include " ggml.h "
1+ #include " json-partial.h"
2+
33#include " log.h"
4- #include < string>
54
65#include < nlohmann/json.hpp>
76
7+ #include < string>
8+
89using json = nlohmann::ordered_json;
910
1011enum common_json_stack_element_type {
Original file line number Diff line number Diff line change 11#pragma once
2+
23#include < nlohmann/json.hpp>
34
45// Healing marker (empty if the JSON was fully parsed / wasn't healed).
Original file line number Diff line number Diff line change 44#include < nlohmann/json.hpp>
55
66#include < algorithm>
7- #include < fstream>
87#include < map>
98#include < regex>
109#include < sstream>
Original file line number Diff line number Diff line change 11#pragma once
22
3- #include " ggml.h"
4-
5- // Change JSON_ASSERT from assert() to GGML_ASSERT:
6- #define JSON_ASSERT GGML_ASSERT
73#include < nlohmann/json_fwd.hpp>
84
95#include < functional>
Original file line number Diff line number Diff line change 55//
66// cmake -B build && cmake --build build --parallel && ./build/bin/test-chat ../minja/build/tests/*.jinja 2>/dev/null
77//
8- #include < fstream>
9- #include < iostream>
10- #include < string>
11-
12- #include < nlohmann/json.hpp>
13-
148#include " chat.h"
159
1610#include " ../src/unicode.h"
1711#include " ../src/llama-grammar.h"
1812
13+ #include < nlohmann/json.hpp>
14+
15+ #include < fstream>
16+ #include < iostream>
17+ #include < string>
18+
1919using json = nlohmann::ordered_json;
2020
2121static std::ostream & operator <<(std::ostream & os, const common_chat_msg_diff & diff) {
Original file line number Diff line number Diff line change 55
66#include " linenoise.cpp/linenoise.h"
77
8+ #define JSON_ASSERT GGML_ASSERT
89#include < nlohmann/json.hpp>
910
1011#if defined(_WIN32)
Original file line number Diff line number Diff line change 1111#include " mtmd.h"
1212#include " mtmd-helper.h"
1313
14- // Change JSON_ASSERT from assert() to GGML_ASSERT:
15- #define JSON_ASSERT GGML_ASSERT
16- #include < nlohmann/json.hpp>
1714// mime type for sending response
1815#define MIMETYPE_JSON " application/json; charset=utf-8"
1916
Original file line number Diff line number Diff line change 1515#define CPPHTTPLIB_TCP_NODELAY true
1616#include < cpp-httplib/httplib.h>
1717
18- // Change JSON_ASSERT from assert() to GGML_ASSERT:
1918#define JSON_ASSERT GGML_ASSERT
2019#include < nlohmann/json.hpp>
2120
You can’t perform that action at this time.
0 commit comments