Skip to content

Add MiniMax VLM endpoint support - #205

Open
octo-patch wants to merge 1 commit into
breezedeus:mainfrom
octo-patch:octo/20260801-provider-add-recvqISA0fJlSX
Open

Add MiniMax VLM endpoint support#205
octo-patch wants to merge 1 commit into
breezedeus:mainfrom
octo-patch:octo/20260801-provider-add-recvqISA0fJlSX

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Pix2Text could not persist the MiniMax OpenAI-compatible endpoint in its VLM configuration, preventing MiniMax-M3 from being used for image OCR.

  • Add constructor-level api_base support to the VLM wrapper.
  • Forward the endpoint through text/formula and table OCR configuration.
  • Document MiniMax-M3 setup for the global and China endpoints.
  • Add mocked coverage for default and per-call endpoint selection.

Checks:

  • ../../.octopatch-venv/bin/python -m pytest tests/test_vlm_api_config.py
  • ../../.octopatch-venv/bin/black --check tests/test_vlm_api_config.py
  • ../../.octopatch-venv/bin/flake8 tests/test_vlm_api_config.py
  • ../../.octopatch-venv/bin/python -m compileall -q pix2text/vlm_api.py pix2text/vlm_table_ocr.py pix2text/text_formula_ocr.py pix2text/pix_to_text.py tests/test_vlm_api_config.py
  • git diff --check

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