fix(archied): model catalog load no longer reverts control-plane execution budgets to the file's
This commit is contained in:
1 file changed
+6
-1
@@ -813,7 +813,12 @@ func (b *boot) loadCatalog(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
models := modelcatalog.Apply(&b.cfg, snapshot)
|
||||
b.cfgHolder.Set(b.cfg.Clone())
|
||||
// Layer the catalog over the live config, not b.cfg: b.cfg predates the
|
||||
// execution-settings watch, so publishing it would put the file's budgets
|
||||
// back over the control plane's.
|
||||
live := b.cfgHolder.Get().Clone()
|
||||
modelcatalog.Apply(&live, snapshot)
|
||||
b.cfgHolder.Set(live)
|
||||
b.catalog.Set(snapshot)
|
||||
b.log.InfoContext(ctx, "model catalog loaded", "providers", len(snapshot.Providers), "models", len(models))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user