Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for image upload to multimodal models #59

Merged
merged 7 commits into from
Feb 3, 2024

Conversation

andrewnguonly
Copy link
Owner

Summary

This PR resolves #27.

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

  1. Move getHtmlContent() to a separate scripts/content.ts file.
  2. Update getHtmlContent() to retrieve src URLs from <img> elements inside the returned elements from the selectors and selectorsAll queries.
  3. Update background script to download images and bind the base64 encoded image data to the model.

@andrewnguonly andrewnguonly merged commit df9336c into 1.0.4 Feb 3, 2024
@andrewnguonly andrewnguonly deleted the multi-modal branch February 3, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant