fix: attempt completion (#2091)

This commit is contained in:
yetone
2025-05-27 17:29:53 +08:00
committed by GitHub
parent 53f29bf76d
commit 0b4775c8f7
4 changed files with 16 additions and 7 deletions

View File

@@ -911,7 +911,7 @@ function M._stream(opts)
if not completed_attempt_completion_tool_use and opts.on_messages_add then
local message = HistoryMessage:new({
role = "user",
content = "\ncontinue\n",
content = "<user-reminder>You should use tool calls to answer the question, for example, use attempt_completion if the job is done.</user-reminder>",
}, {
visible = false,
})