remove redundant code
This commit is contained in:
parent
21c25831d9
commit
185689d041
1 changed files with 0 additions and 4 deletions
|
@ -2644,10 +2644,6 @@ std::string llama_chat_apply_template(const struct llama_model * model,
|
|||
}
|
||||
}
|
||||
|
||||
if (fallback) {
|
||||
res = llama_chat_apply_template(nullptr, "chatml", chat.data(), chat.size(), add_ass, buf.data(), buf.size());
|
||||
}
|
||||
|
||||
// if it turns out that our buffer is too small, we resize it
|
||||
if ((size_t) res > buf.size()) {
|
||||
buf.resize(res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue