Skip to content

feat: Add environment variable configuration for OCR service and image resize#1684

Closed
ErixWong wants to merge 1 commit intomicrosoft:mainfrom
ErixWong:feature/ocr-env-config
Closed

feat: Add environment variable configuration for OCR service and image resize#1684
ErixWong wants to merge 1 commit intomicrosoft:mainfrom
ErixWong:feature/ocr-env-config

Conversation

@ErixWong
Copy link
Copy Markdown

feat: Add environment variable configuration for OCR service and image resize

  • Add MARKITDOWN_OCR_API_KEY, MARKITDOWN_OCR_API_BASE, MARKITDOWN_OCR_MODEL env vars
  • Add MARKITDOWN_MAX_IMAGE_DIMENSION env var for image resize control
  • Add LLMVisionOCRService.from_env() class method to create service from env
  • Update plugin to auto-configure OCR service from environment variables
  • Add image resize logic to reduce LLM Vision API load (default max 1500px)
  • Add design documentation for the resize feature

@ErixWong
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@ErixWong ErixWong force-pushed the feature/ocr-env-config branch from 79b11ed to 5af36cb Compare April 10, 2026 17:50
@ErixWong ErixWong closed this Apr 10, 2026
@ErixWong ErixWong deleted the feature/ocr-env-config branch April 10, 2026 17:52
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