Skip to content

Commit bb10538

Browse files
committed
fix(adapters): change default copilot model
1 parent 7cc35b7 commit bb10538

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lua/codecompanion/adapters/http/copilot

lua/codecompanion/adapters/http/copilot/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ return {
372372
type = "enum",
373373
desc = "ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API.",
374374
---@type string|fun(): string
375-
default = "gpt-4.1",
375+
default = "gpt-5.4-mini",
376376
---@type fun(self: CodeCompanion.HTTPAdapter, opts?: table): table
377377
choices = function(self, opts)
378378
opts = opts or {}
@@ -381,7 +381,7 @@ return {
381381
local force = opts.async == false
382382
local fetched = token.fetch({ force = force })
383383
if not fetched or not fetched.copilot_token then
384-
return { ["gpt-4.1"] = { opts = {} } }
384+
return { ["gpt-5.4-mini"] = { opts = {} } }
385385
end
386386
return get_models.choices(self, { token = fetched, async = opts.async })
387387
end,

0 commit comments

Comments
 (0)