fix: remove duplicate kilo provider injection

Ensure kilo provider is deleted before re-injection to prevent duplication in model provider list
This commit is contained in:
Catriel Müller
2026-02-16 16:42:25 -03:00
parent 4c1f516863
commit 5ce1886661
+4
View File
@@ -121,6 +121,10 @@ export namespace ModelsDev {
// kilocode_change start
const providers = result as Record<string, Provider>
if (providers["kilo"]) {
delete providers["kilo"]
}
// Inject kilo provider with dynamic model fetching
if (!providers["kilo"]) {
const config = await Config.get()