We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced1ea4 commit ed974bfCopy full SHA for ed974bf
mistralrs-core/src/pipeline/chat_template.rs
@@ -294,7 +294,7 @@ pub fn apply_chat_template_to(
294
};
295
let mut template = template.replace("[::-1]", "|reverse");
296
297
- if template.find("{{ meta }}").is_some() {
+ if template.contains("{{ meta }}") {
298
//fix for GLM4 models
299
template = template.replace("{%- set meta = message.get(\"metadata\", \"\") %}", "");
300
template = template.replace("{{ meta }}", "");
0 commit comments