llava and bakllava are multimodal models available through Ollama. Images that are present on the current tab will be downloaded and bound to the model.
Implementation
Move getHtmlContent() to a separate scripts/content.ts file.
Update getHtmlContent() to retrieve src URLs from <img> elements inside the returned elements from the selectors and selectorsAll queries.
Update background script to download images and bind the base64 encoded image data to the model.
Summary
This PR resolves https://github.com/andrewnguonly/Lumos/issues/27.
llava
andbakllava
are multimodal models available through Ollama. Images that are present on the current tab will be downloaded and bound to the model.Implementation
getHtmlContent()
to a separatescripts/content.ts
file.getHtmlContent()
to retrievesrc
URLs from<img>
elements inside the returned elements from theselectors
andselectorsAll
queries.