diff --git a/lua/CopilotChat/functions.lua b/lua/CopilotChat/functions.lua index 6e936a3d..080507a3 100644 --- a/lua/CopilotChat/functions.lua +++ b/lua/CopilotChat/functions.lua @@ -56,7 +56,7 @@ local function filter_schema(tbl, root) local result = {} for k, v in pairs(tbl) do if not utils.empty(v) then - if type(v) ~= 'function' and k ~= 'examples' then + if k ~= 'examples' then result[k] = type(v) == 'table' and filter_schema(v) or v end end