Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
4 changes: 3 additions & 1 deletion include/minja/chat-template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
#pragma once

#include "minja.hpp"
#include <json.hpp>

#include <string>
#include <vector>

#include <nlohmann/json.hpp>

using json = nlohmann::ordered_json;

namespace minja {
Expand Down
3 changes: 2 additions & 1 deletion include/minja/minja.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include <stdexcept>
#include <sstream>
#include <unordered_set>
#include <json.hpp>

#include <nlohmann/json.hpp>

using json = nlohmann::ordered_json;

Expand Down
Loading