apply custom stop tokens

This commit is contained in:
Peter Nagymathe 2023-12-30 02:57:23 +00:00
parent fe6630c23e
commit 9c3e7e0c77

View file

@ -2521,7 +2521,9 @@ json oaicompat_completion_params_parse(
}
// Ensure there is ChatML-specific end sequence among stop words
llama_params["stop"].push_back("<|im_end|>");
for(auto& stop : formatter.stop_keys){
llama_params["stop"].push_back(stop);
}
return llama_params;
}