obsidian-plugin-auto-tag icon indicating copy to clipboard operation
obsidian-plugin-auto-tag copied to clipboard

Image embeds may be crashing the plugin

Open seantiz opened this issue 1 year ago • 3 comments

This has proved a very useful plugin so far. The one issue I ran into is a .png embed in a note brought the plugin to crash each time.

In a different note with a .jpg embed (and far less markdown code attached to it) there was no problem. I believe the difference with the .png embed isn't necessarily the format, but that the markdown code in the embed attachment has a LOT more characters in it.

seantiz avatar Jan 13 '24 22:01 seantiz

Sorry for not having responded in this topic earlier, I saw the notification via email and noted it.

Haven't had the time to work on this till now. I'll start looking at a fix for this issue this week, while working on ollama localhost/open-source AI support.

CtrlAltFocus avatar Feb 19 '24 08:02 CtrlAltFocus

No problem! if could be that i was sending too much for GPT3.5 to tokenise. that's my best guess.

seantiz avatar Feb 19 '24 08:02 seantiz

Might be! In that case, still is an issue :-) The plugin should warn about that, and either not allow it, or cut off at the limit or make multiple requests (or let the user decide :) ).

CtrlAltFocus avatar Feb 21 '24 21:02 CtrlAltFocus