From b82e1fd9d84e84971fe56564e604cc432b5e06f8 Mon Sep 17 00:00:00 2001 From: gptlang Date: Thu, 22 Aug 2024 18:25:52 +0800 Subject: [PATCH] show which model is currently being used --- lua/CopilotChat/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/CopilotChat/init.lua b/lua/CopilotChat/init.lua index 9bb7c80..7198c61 100644 --- a/lua/CopilotChat/init.lua +++ b/lua/CopilotChat/init.lua @@ -876,6 +876,11 @@ function M.setup(config) range = true, }) + vim.api.nvim_create_user_command('CopilotChatModel', function() + -- Show which model is being used in an alert + vim.notify('Using model: ' .. M.config.model, vim.log.levels.INFO) + end, { force = true }) + vim.api.nvim_create_user_command('CopilotChatModels', function() M.select_model() end, { force = true })