fix: do not modify the tool_use input

This commit is contained in:
yetone
2025-07-16 20:15:14 +08:00
parent ae06698c30
commit 2a16e7d4d9
9 changed files with 37 additions and 35 deletions

View File

@@ -216,7 +216,7 @@ M.returns = {
---@type AvanteLLMToolFunc<{ path: string, command: string, streaming?: boolean }>
function M.func(input, opts)
local is_streaming = input.streaming or false
local is_streaming = opts.streaming or false
if is_streaming then
-- wait for stream completion as command may not be complete yet
return