diff --git a/src/application/chat/use_cases.rs b/src/application/chat/use_cases.rs index 4604966..b9b6c6d 100644 --- a/src/application/chat/use_cases.rs +++ b/src/application/chat/use_cases.rs @@ -89,8 +89,8 @@ pub fn build_prompt(messages: &[ChatMessage], tools: &Option>) -> S } } - // Generation prompt: thinking mode (MiniCPM5 native) - prompt.push_str("<|im_start|>assistant\n/think\n\n"); + // Generation prompt + prompt.push_str("<|im_start|>assistant\n"); prompt } @@ -187,6 +187,8 @@ pub fn clean_text(text: &str) -> String { .replace("<|tool_call|>", "") .replace("<|execute_start|>", "") .replace("<|execute_end|>", "") + .replace("", "") + .replace("", "") .replace("/think", "") .replace("/no_think", "") .trim()