diff --git a/lua/avante/providers/copilot.lua b/lua/avante/providers/copilot.lua index 6c49a39aa..2899a9c16 100644 --- a/lua/avante/providers/copilot.lua +++ b/lua/avante/providers/copilot.lua @@ -172,7 +172,7 @@ M.parse_curl_args = function(provider, code_opts) insecure = base.allow_insecure, headers = H.generate_headers(M.copilot.token.token, M.copilot.sessionid, M.copilot.machineid), body = vim.tbl_deep_extend("force", { - mode = base.model, + model = base.model, n = 1, top_p = 1, stream = true,