Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/CopilotChat/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ function Client:ask(opts)

if out.tool_calls then
for _, tool_call in ipairs(out.tool_calls) do
local key = tool_call.id or tool_call.index or tool_call.name or (#tool_calls:values() + 1)
local key = tostring(tool_call.index or tool_call.id or tool_call.name or #tool_calls:values() + 1)
local existing = tool_calls:get(key)

if not existing then
Expand Down
Loading