Added Ai Image Analyzer support (#386)
* Added Ai Image Analyzer support * removed unnecessary null check
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
indexingStep,
|
||||
IndexingStepType,
|
||||
type TextExtractorApi,
|
||||
type AIImageAnalyzerAPI,
|
||||
} from './globals'
|
||||
import { notifyOnIndexed, registerAPI } from './tools/api'
|
||||
import { Database } from './database'
|
||||
@@ -206,6 +207,14 @@ export default class OmnisearchPlugin extends Plugin {
|
||||
return (this.app as any).plugins?.plugins?.['text-extractor']?.api
|
||||
}
|
||||
|
||||
/**
|
||||
* Plugin dependency - Ai Image Analyzer
|
||||
* @returns
|
||||
*/
|
||||
public getAIImageAnalyzer(): AIImageAnalyzerAPI | undefined {
|
||||
return (this.app as any).plugins?.plugins?.['ai-image-analyzer']?.api
|
||||
}
|
||||
|
||||
private async populateIndex(): Promise<void> {
|
||||
console.time('Omnisearch - Indexing total time')
|
||||
indexingStep.set(IndexingStepType.ReadingFiles)
|
||||
|
||||
Reference in New Issue
Block a user