mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user