diff --git a/lua/CopilotChat/init.lua b/lua/CopilotChat/init.lua index f3e8cce..c5d6c2a 100644 --- a/lua/CopilotChat/init.lua +++ b/lua/CopilotChat/init.lua @@ -356,7 +356,9 @@ function M.select_model() vim.ui.select(models, { prompt = 'Select a model', }, function(choice) - M.config.model = choice + if choice then + M.config.model = choice + end end) end) end)