MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / apply_chat_template

Method apply_chat_template

src/common/AutoModel/modeling_nanbeige.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::string Nanbeige::apply_chat_template(nlohmann::ordered_json& messages, nlohmann::ordered_json tools) {
46 minja::chat_template_inputs inputs;
47 inputs.add_generation_prompt = true;
48 inputs.messages = messages;
49 // inputs.tools = tools;
50 inputs.extra_context = this->extra_context;
51 return this->chat_tmpl->apply(inputs);
52}
53
54std::string Nanbeige::nanbeige_filter(int token) {
55

Callers 1

insertMethod · 0.95

Calls 1

applyMethod · 0.80

Tested by

no test coverage detected