agent fix

This commit is contained in:
2026-09-24 12:36:33 +05:30
parent 294fb8ab93
commit bb14445e21
10 changed files with 661 additions and 15 deletions

View File

@@ -434,7 +434,7 @@ func main() {
log.Fatal("assistant provider:", err)
}
if chat == nil {
log.Println("assistant: ASSISTANT_PROVIDER not set, Nearle Buddy answers no typed questions")
log.Printf("assistant: OFF — %s", cfg.Assistant.Why())
} else {
log.Printf("assistant: %s, balanced tier is %s", cfg.Assistant.Provider, cfg.Assistant.ModelFor(utils.TierBalanced))
}
@@ -442,7 +442,7 @@ func main() {
// ASSISTANT_AGENTS_DIR replaces the compiled-in agent definitions wholesale.
// Empty uses the embedded ones, so a deployment cannot be broken by a missing
// directory.
f := facade.NewFacade(db.DB, db.CatalogueDB, embedder, chat, os.Getenv("ASSISTANT_AGENTS_DIR"))
f := facade.NewFacade(db.DB, db.CatalogueDB, embedder, chat, os.Getenv("ASSISTANT_AGENTS_DIR"), cfg.Assistant.Why())
routes.RegisterRoutes(app, f)