fix: custom vendors listed twice in model selection dropdown (#1435)
This commit is contained in:
@@ -24,13 +24,6 @@ function M.open()
|
|||||||
if entry then table.insert(models, entry) end
|
if entry then table.insert(models, entry) end
|
||||||
end
|
end
|
||||||
|
|
||||||
for provider, cfg in pairs(Config.vendors or {}) do
|
|
||||||
if type(cfg) == "table" then
|
|
||||||
local entry = create_model_entry(provider, cfg)
|
|
||||||
if entry then table.insert(models, entry) end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if #models == 0 then
|
if #models == 0 then
|
||||||
Utils.warn("No models available in config")
|
Utils.warn("No models available in config")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user