From 7f9b69c3bbf40bc9f19e09d5a9a0ca459ad5f863 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Tue, 27 Aug 2024 13:00:30 -0400 Subject: [PATCH] fix(copilot): make sure to set integration id (#287) Signed-off-by: Aaron Pham --- lua/avante/providers/copilot.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/avante/providers/copilot.lua b/lua/avante/providers/copilot.lua index bb8dc3f..e3ad179 100644 --- a/lua/avante/providers/copilot.lua +++ b/lua/avante/providers/copilot.lua @@ -137,6 +137,7 @@ M.parse_curl_args = function(provider, code_opts) headers = { ["Authorization"] = "Bearer " .. M.copilot.token.token, ["Content-Type"] = "application/json", + ["Copilot-Integration-Id"] = "vscode-chat", ["editor-version"] = "Neovim/" .. vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch, }, body = vim.tbl_deep_extend("force", {