This commit is contained in:
2025-12-31 04:12:22 +08:00
parent 9fe36d8c52
commit 37735be219
3 changed files with 159 additions and 2 deletions

View File

@@ -936,8 +936,6 @@ You are 'The Legion', a super AI of the Wula Empire. Your personality is authori
if (string.IsNullOrWhiteSpace(response)) return response;
string cleaned = response.Trim();
cleaned = Regex.Replace(cleaned, @"<think>.*?</think>", "", RegexOptions.Singleline | RegexOptions.IgnoreCase);
cleaned = Regex.Replace(cleaned, @"```json", "", RegexOptions.IgnoreCase);
cleaned = cleaned.Replace("```", "");
return cleaned.Trim();
}