File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 513513local M = {}
514514
515515M .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
You can’t perform that action at this time.
0 commit comments