diff --git a/CMakeLists.txt b/CMakeLists.txt index bd11142..62d2fc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,6 @@ message(STATUS "${fuzztest_BINARY_DIR}: ${${fuzztest_BINARY_DIR}}") include_directories( include/minja ${json_SOURCE_DIR}/include - ${json_SOURCE_DIR}/include/nlohmann ) add_subdirectory(examples) diff --git a/README.md b/README.md index d45c45e..eb17ef9 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ It is **not general purpose**: it includes just what’s needed for actual chat ## Usage: -This library is header-only: just copy the header(s) you need, make sure to use a compiler that handles C++17 and you're done. Oh, and get [nlohmann::json](https://github.com/nlohmann/json)'s `json.hpp` in your include path. +This library is header-only: just copy the header(s) you need, make sure to use a compiler that handles C++17 and you're done. Oh, and get [nlohmann::json](https://github.com/nlohmann/json) in your include path. See API in [minja/minja.hpp](./include/minja/minja.hpp) and [minja/chat-template.hpp](./include/minja/chat-template.hpp) (experimental). diff --git a/include/minja/chat-template.hpp b/include/minja/chat-template.hpp index 882ba41..c74f378 100644 --- a/include/minja/chat-template.hpp +++ b/include/minja/chat-template.hpp @@ -9,10 +9,12 @@ #pragma once #include "minja.hpp" -#include + #include #include +#include + using json = nlohmann::ordered_json; namespace minja { diff --git a/include/minja/minja.hpp b/include/minja/minja.hpp index c58dd66..e6a5e25 100644 --- a/include/minja/minja.hpp +++ b/include/minja/minja.hpp @@ -16,7 +16,8 @@ #include #include #include -#include + +#include using json = nlohmann::ordered_json;