feat: trim think content in history messages (#1178)

This commit is contained in:
yetone
2025-02-04 15:25:36 +08:00
committed by GitHub
parent 85645fd9ab
commit a9ab429699
3 changed files with 39 additions and 1 deletions

View File

@@ -858,4 +858,6 @@ end
function M.is_same_file(filepath_a, filepath_b) return M.uniform_path(filepath_a) == M.uniform_path(filepath_b) end
function M.trim_think_content(content) return content:gsub("^<think>.-</think>", "", 1) end
return M