Compare commits

...

1 Commits

Author SHA1 Message Date
Aiden Cline
97799f347e fix: ensure that plugins can register providers with config changes 2026-03-20 00:36:00 -05:00

View File

@@ -866,8 +866,16 @@ export namespace Provider {
providers[providerID] = mergeDeep(existing, provider)
return
}
const match = database[providerID]
if (!match) return
const match =
database[providerID] ??
({
id: providerID,
name: providerID,
source: "custom",
env: [],
options: {},
models: {},
} satisfies Info)
// @ts-expect-error
providers[providerID] = mergeDeep(match, provider)
}