mirror of
https://github.com/travisvn/obsidian-vision-recall.git
synced 2026-07-22 05:38:13 +00:00
Quick patch for forgotten follow through of recent change
This commit is contained in:
parent
e828952a84
commit
8534cb2085
4 changed files with 18 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "vision-recall",
|
||||
"name": "Vision Recall",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"minAppVersion": "1.8.3",
|
||||
"description": "Transform screenshots into searchable notes using AI vision and text analysis.",
|
||||
"author": "Travis Van Nimwegen",
|
||||
|
|
|
|||
13
package.json
13
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-vision-recall",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"description": "Transform screenshots into searchable Obsidian notes using AI vision and text analysis.",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
@ -8,7 +8,16 @@
|
|||
"build": "tsc -noEmit -skipLibCheck && vite build --mode production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": [],
|
||||
"keywords": [
|
||||
"obsidian plugin",
|
||||
"llm",
|
||||
"artificial intelligence",
|
||||
"ai",
|
||||
"automation",
|
||||
"ollama",
|
||||
"ocr",
|
||||
"openai"
|
||||
],
|
||||
"author": "Travis Van Nimwegen",
|
||||
"license": "AGPL-3.0",
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { App, FileManager, Notice, TFile, TFolder, arrayBufferToBase64, normalizePath } from 'obsidian';
|
||||
import Tesseract, { createWorker, Worker } from 'tesseract.js';
|
||||
import { VisionRecallPluginSettings } from '@/types/settings-types';
|
||||
import { DEFAULT_TAGS_AND_TITLE, TagsAndTitle, VISION_LLM_PROMPT, callLLMAPI, llmSuggestTagsAndTitle } from '@/services/llm-service';
|
||||
import { DEFAULT_TAGS_AND_TITLE, TagsAndTitle, VISION_LLM_PROMPT, callLLMAPI } from '@/services/llm-service';
|
||||
import VisionRecallPlugin from '@/main';
|
||||
import { checkOCRText } from '@/lib/ocr-validation';
|
||||
import { formatTags, sanitizeObsidianTag, tagsToCommaString } from '@/lib/tag-utils';
|
||||
|
|
@ -9,6 +9,7 @@ import { useQueueStore } from '@/stores/queueStore';
|
|||
import { visionLLMResponseCategoriesMap } from '@/data/reference';
|
||||
import { computeFileHash, shouldProcessImage } from '@/lib/image-utils';
|
||||
import { sanitizeFilename } from './shared-functions';
|
||||
import { generateTagsWithRetries } from './tag-service';
|
||||
|
||||
export type DeleteScreenshotMetadataParams = {
|
||||
identity: string;
|
||||
|
|
@ -404,7 +405,8 @@ export class ScreenshotProcessor {
|
|||
private async generateTags(generatedNotes: string): Promise<TagsAndTitle> {
|
||||
try {
|
||||
if (this.progressManager.isStoppedByUser()) return DEFAULT_TAGS_AND_TITLE;
|
||||
const tagsAndTitle = await llmSuggestTagsAndTitle(this.settings, generatedNotes);
|
||||
// const tagsAndTitle = await llmSuggestTagsAndTitle(this.settings, generatedNotes);
|
||||
const tagsAndTitle = await generateTagsWithRetries(generatedNotes, this.settings);
|
||||
this.plugin.logger.debug('LLM suggested tags:', tagsAndTitle);
|
||||
return tagsAndTitle;
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
"1.0.4": "1.8.3",
|
||||
"1.0.5": "1.8.3",
|
||||
"1.0.6": "1.8.3",
|
||||
"1.0.7": "1.8.3"
|
||||
"1.0.7": "1.8.3",
|
||||
"1.0.8": "1.8.3"
|
||||
}
|
||||
Loading…
Reference in a new issue