chat : only remove double bos/eos if added (#15086)

* only remove double bos/eos if added

* fix tests
This commit is contained in:
Sigbjørn Skjæret
2025-08-05 20:43:36 +02:00
committed by GitHub
parent be42642581
commit f324a3b715
3 changed files with 23 additions and 5 deletions

View File

@@ -127,6 +127,8 @@ struct common_chat_templates_inputs {
bool enable_thinking = true;
std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
std::map<std::string, std::string> chat_template_kwargs;
bool add_bos = false;
bool add_eos = false;
};
struct common_chat_params {