Skip to content

fix : screenshot error#51

Open
NanditaPatil-dotcom wants to merge 2 commits intoPrat011:masterfrom
NanditaPatil-dotcom:fix-screenshot
Open

fix : screenshot error#51
NanditaPatil-dotcom wants to merge 2 commits intoPrat011:masterfrom
NanditaPatil-dotcom:fix-screenshot

Conversation

@NanditaPatil-dotcom
Copy link
Copy Markdown

@NanditaPatil-dotcom NanditaPatil-dotcom commented Nov 28, 2025

The analysing image is fixed only for gemini API, ollama needs model switch
issue :
it relied on the screenshot-desktop library, which uses ImageMagick's import command.
fix: replaced screenshot-desktop with electron's built-in desktopCapturer API and updated both mkdirSync calls in the constructor to include { recursive: true }.


private supportsOllamaVision(): boolean {
const model = this.ollamaModel.toLowerCase()
const visionHints = ["vision", "llava", "moondream", "pixtral", "minicpm", "gpt4o", "flux", "reka"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's look like a hardcode. If you will merge this could you also add ministral and deepseek-ocr

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.

2 participants