fix: load ai config from manager

This commit is contained in:
richjohnrambo
2026-09-29 15:07:27 +08:00
parent a85393b2b8
commit 97a43a6c96
2 changed files with 66 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@ func New(cfg *config.Config) (*App, error) {
if err := store.SetUIDKey(uidKey); err != nil {
return nil, err
}
cfg.AI = managerconfig.ResolveAIConfig(context.Background(), cfg.Manager, cfg.AI)
st, err := store.Open(cfg.MySQL)
if err != nil {
return nil, err