fix: custom vendors listed twice in model selection dropdown (#1435)

This commit is contained in:
Thomas Müller
2025-03-01 05:47:13 +01:00
committed by GitHub
parent 814bba5ef2
commit a0af22df2e

View File

@@ -24,13 +24,6 @@ function M.open()
if entry then table.insert(models, entry) 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
Utils.warn("No models available in config")
return