Skip to content

Commit a1b4654

Browse files
committed
fix(chat): correct model count
1 parent cb28752 commit a1b4654

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/codecompanion/interactions/chat/keymaps/change_adapter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ end
126126
---@return table|nil
127127
function M.list_acp_models(connection)
128128
local models = connection:get_models()
129-
if not models or vim.tbl_count(models) < 2 then
129+
if not models or vim.tbl_count(models.availableModels) < 2 then
130130
return nil
131131
end
132132

0 commit comments

Comments
 (0)