Add temporary AI commands and request transcripts
This commit is contained in:
@@ -41,7 +41,9 @@ class AccountManager:
|
||||
loaded = load_persistent_commands(self.config.ai.workspace_dir / "commands", self.command_registry)
|
||||
if loaded:
|
||||
log.info("Loaded persistent commands: %s", ", ".join(loaded))
|
||||
self.ai_service = AIService(self.config.ai) if self.config.ai is not None else None
|
||||
self.ai_service = (
|
||||
AIService(self.config.ai, self.command_registry) if self.config.ai is not None else None
|
||||
)
|
||||
self.states = [AccountState(config=account) for account in self.config.accounts]
|
||||
self.github_webhook_server = GitHubWebhookServer(self, self.config.github_webhook)
|
||||
|
||||
@@ -162,3 +164,5 @@ class AccountManager:
|
||||
finally:
|
||||
await self.github_webhook_server.stop()
|
||||
await self.stop_all()
|
||||
if self.ai_service is not None:
|
||||
self.ai_service.close()
|
||||
|
||||
Reference in New Issue
Block a user