Skip to content

feat: Added deepseek-ocr with ollama#491

Merged
onuratakan merged 1 commit intomasterfrom
deepseekocr
Dec 6, 2025
Merged

feat: Added deepseek-ocr with ollama#491
onuratakan merged 1 commit intomasterfrom
deepseekocr

Conversation

@onuratakan
Copy link
Copy Markdown
Member

@onuratakan onuratakan commented Dec 6, 2025

Note

Adds a new DeepSeekOllamaOCR provider using Ollama’s deepseek-ocr:3b model and wires it into infer_provider via deepseek_ollama.

  • OCR Providers:
    • New DeepSeekOllamaOCR in src/upsonic/ocr/deepseek_ollama.py:
      • Initializes Ollama Client, validates dependency, and warns on unsupported languages.
      • Processes images via temp file, calls client.chat with <image> prompt, returns OCRResult with metadata.
      • Provides supported_languages, customizable host, model, and prompt.
  • Factory Wiring:
    • Adds deepseek_ollama -> upsonic.ocr.deepseek_ollama.DeepSeekOllamaOCR to infer_provider map in src/upsonic/ocr/ocr.py.

Written by Cursor Bugbot for commit 782a452. This will update automatically on new commits. Configure here.

@onuratakan onuratakan merged commit 4e3f1e2 into master Dec 6, 2025
5 checks passed
@onuratakan onuratakan deleted the deepseekocr branch December 6, 2025 09:09
DoganK01 pushed a commit that referenced this pull request Jan 5, 2026
feat: Added deepseek-ocr with ollama
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