Skip to content

Commit f826fc4

Browse files
committed
fix: rename duplicate function name
1 parent 8280b51 commit f826fc4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lua/CopilotChat/client.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ function Client:ask(opts)
312312
local provider_name = 'copilot'
313313
local provider = self:get_providers():get(provider_name)
314314

315-
if provider and provider.select_model then
315+
if provider and provider.route_model then
316316
local headers = self:authenticate(provider_name)
317-
local selected_model, err = provider.select_model(headers, { 'auto' })
317+
local selected_model, err = provider.route_model(headers, { 'auto' })
318318

319319
if selected_model then
320320
opts.model = selected_model

lua/CopilotChat/config/providers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ end
513513
local M = {}
514514

515515
M.copilot = {
516-
select_model = function(headers, hints)
516+
route_model = function(headers, hints)
517517
hints = hints or { 'auto' }
518518
local token = headers['Authorization'] and headers['Authorization']:gsub('^Bearer%s+', '')
519519
if not token then

0 commit comments

Comments
 (0)