mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
Do a better job of handling tools
This commit is contained in:
@@ -104,7 +104,8 @@ export class ChatPipeline {
|
||||
// If there are no tools registered, initialize them
|
||||
if (toolCount === 0) {
|
||||
log.info('No tools found in registry, initializing tools...');
|
||||
await toolInitializer.initializeTools();
|
||||
// Tools are already initialized in the AIServiceManager constructor
|
||||
// No need to initialize them again
|
||||
log.info(`Tools initialized, now have ${toolRegistry.getAllTools().length} tools`);
|
||||
} else {
|
||||
log.info(`Found ${toolCount} tools already registered`);
|
||||
|
||||
Reference in New Issue
Block a user