mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	Attempt to fix linkage of LLAMA_CHATML_TEMPLATE
This commit is contained in:
		@@ -74,14 +74,14 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
#define LLAMA_CURL_MAX_URL_LENGTH 2084 // Maximum URL Length in Chrome: 2083
 | 
					#define LLAMA_CURL_MAX_URL_LENGTH 2084 // Maximum URL Length in Chrome: 2083
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const char * LLAMA_CHATML_TEMPLATE = R"(
 | 
					const std::string LLAMA_CHATML_TEMPLATE(R"(
 | 
				
			||||||
    {%- for message in messages -%}
 | 
					    {%- for message in messages -%}
 | 
				
			||||||
        {{- "<|im_start|>" + message.role + "\n" + message.content + "<|im_end|>\n" -}}
 | 
					        {{- "<|im_start|>" + message.role + "\n" + message.content + "<|im_end|>\n" -}}
 | 
				
			||||||
    {%- endfor -%}
 | 
					    {%- endfor -%}
 | 
				
			||||||
    {%- if add_generation_prompt -%}
 | 
					    {%- if add_generation_prompt -%}
 | 
				
			||||||
        {{- "<|im_start|>assistant\n" -}}
 | 
					        {{- "<|im_start|>assistant\n" -}}
 | 
				
			||||||
    {%- endif -%}
 | 
					    {%- endif -%}
 | 
				
			||||||
)";
 | 
					)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// CURL utils
 | 
					// CURL utils
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define DEFAULT_MODEL_PATH "models/7B/ggml-model-f16.gguf"
 | 
					#define DEFAULT_MODEL_PATH "models/7B/ggml-model-f16.gguf"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern const char * LLAMA_CHATML_TEMPLATE;
 | 
					extern const std::string LLAMA_CHATML_TEMPLATE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct common_adapter_lora_info {
 | 
					struct common_adapter_lora_info {
 | 
				
			||||||
    std::string path;
 | 
					    std::string path;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user