File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function M.select_model()
161
161
-- get local defined models
162
162
local used_provider = vim .fn .tolower (Config .opts .connection .api_provider )
163
163
local local_models = M .get_local_models (used_provider )
164
- models = vim .tbl_extend ( " force " , models , local_models )
164
+ models = vim .fn . extend ( models , local_models )
165
165
166
166
if models == nil then
167
167
error (" listing models" )
Original file line number Diff line number Diff line change @@ -201,11 +201,7 @@ function M.get_models()
201
201
error (" Could not parse the response from " .. url .. " /v1/models" )
202
202
return {}
203
203
end
204
- -- print(vim.inspect(json))
205
- local models = {}
206
- for _ , model in ipairs (json .models ) do
207
- table.insert (models , 0 , model )
208
- end
204
+ local models = vim .fn .extend ({}, json .models )
209
205
return models
210
206
end
211
207
You can’t perform that action at this time.
0 commit comments