From fa39f079506a199c172da7e9a5fac367534241cb Mon Sep 17 00:00:00 2001 From: William Hsieh Date: Tue, 30 Jul 2024 13:46:33 +0800 Subject: [PATCH] fix(CopilotChat): set default model to gpt-4o ref: https://github.com/CopilotC-Nvim/CopilotChat.nvim/issues/366 --- config/nvim/lazy-lock.json | 2 +- config/nvim/lua/plugins/copilotchat.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 0882f911..01883762 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -1,6 +1,6 @@ { "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, - "CopilotChat.nvim": { "branch": "canary", "commit": "f7861cb7d0ea46d57f67595876c8d2835eae29a2" }, + "CopilotChat.nvim": { "branch": "canary", "commit": "4a5e07185b37d3132e5541d8fa42aa874b774476" }, "LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" }, "SchemaStore.nvim": { "branch": "main", "commit": "30946db59edba23103c2f524e636910a7a2160df" }, "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, diff --git a/config/nvim/lua/plugins/copilotchat.lua b/config/nvim/lua/plugins/copilotchat.lua index bfdca448..ee4be0ba 100644 --- a/config/nvim/lua/plugins/copilotchat.lua +++ b/config/nvim/lua/plugins/copilotchat.lua @@ -1,3 +1,4 @@ +---@module "CopilotChat" local M = { "CopilotC-Nvim/CopilotChat.nvim", cmd = "CopilotChat", @@ -6,9 +7,8 @@ local M = { end, } +---@type CopilotChat.config M.opts = { - -- NOTE: https://github.com/CopilotC-Nvim/CopilotChat.nvim/issues/366 - model = "gpt-4-0125-preview", prompts = { Explain = { prompt =