mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	fix: typo of chatglm4 chat tmpl (#8586)
Signed-off-by: thxCode <thxcode0824@gmail.com>
This commit is contained in:
		@@ -21607,7 +21607,7 @@ static int32_t llama_chat_apply_template_internal(
 | 
			
		||||
        if (add_ass) {
 | 
			
		||||
            ss << "<|assistant|>";
 | 
			
		||||
        }
 | 
			
		||||
    } else if (tmpl == "chaglm4" || tmpl_contains("[gMASK]<sop>")) {
 | 
			
		||||
    } else if (tmpl == "chatglm4" || tmpl_contains("[gMASK]<sop>")) {
 | 
			
		||||
        ss << "[gMASK]" << "<sop>";
 | 
			
		||||
        for (auto message : chat) {
 | 
			
		||||
            std::string role(message->role);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user