Skip to content

Commit 17e6f91

Browse files
committed
fix: add the 'auto' model option as an model in copilot provider
1 parent f2e2dfd commit 17e6f91

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

lua/CopilotChat/client.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,6 @@ function Client:models()
257257
end
258258
end
259259

260-
out['auto'] = {
261-
id = 'auto',
262-
name = 'Auto selects the best model for your request based on capacity and performance. Auto is given a 10% discount.',
263-
provider = 'copilot',
264-
description = 'Auto selects the best model for your request based on capacity and performance. Auto is given a 10% discount.',
265-
}
266-
267260
log.debug('Fetched models:', #vim.tbl_keys(out))
268261
return out
269262
end

lua/CopilotChat/config/providers.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,14 @@ M.copilot = {
638638
end
639639
end
640640

641+
-- auto model selector
642+
table.insert(models, {
643+
id = 'auto',
644+
name = 'Auto (Copilot)',
645+
description = 'Auto selects the best model for your request.',
646+
provider = 'copilot',
647+
capabilities = { limits = {} },
648+
})
641649
return models
642650
end,
643651

0 commit comments

Comments
 (0)