Skip to content

Commit

Permalink
show which model is currently being used
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Aug 22, 2024
1 parent 1a92bb6 commit b82e1fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit b82e1fd

Please sign in to comment.