#include <chat-template.hpp>
|
| static nlohmann::ordered_json | add_system (const nlohmann::ordered_json &messages, const std::string &system_prompt) |
| |
Definition at line 71 of file chat-template.hpp.
◆ chat_template()
| minja::chat_template::chat_template |
( |
const std::string & |
source, |
|
|
const std::string & |
bos_token, |
|
|
const std::string & |
eos_token |
|
) |
| |
|
inline |
◆ add_system()
| static nlohmann::ordered_json minja::chat_template::add_system |
( |
const nlohmann::ordered_json & |
messages, |
|
|
const std::string & |
system_prompt |
|
) |
| |
|
inlinestatic |
◆ apply() [1/2]
◆ apply() [2/2]
| std::string minja::chat_template::apply |
( |
const nlohmann::ordered_json & |
messages, |
|
|
const nlohmann::ordered_json & |
tools, |
|
|
bool |
add_generation_prompt, |
|
|
const nlohmann::ordered_json & |
extra_context = nlohmann::ordered_json(), |
|
|
bool |
apply_polyfills = true |
|
) |
| |
|
inline |
◆ bos_token()
| const std::string & minja::chat_template::bos_token |
( |
| ) |
const |
|
inline |
◆ eos_token()
| const std::string & minja::chat_template::eos_token |
( |
| ) |
const |
|
inline |
◆ original_caps()
◆ source()
| const std::string & minja::chat_template::source |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: