Skip to content

Add current MiniMax model recipes - #23

Merged
thiswillbeyourgithub merged 2 commits into
thiswillbeyourgithub:mainfrom
octo-patch:octo/20260801-model-add-recvqs4oL2zDzm
Aug 24, 2026
Merged

Add current MiniMax model recipes#23
thiswillbeyourgithub merged 2 commits into
thiswillbeyourgithub:mainfrom
octo-patch:octo/20260801-model-add-recvqs4oL2zDzm

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Reason: Add current MiniMax model recipes and regional endpoint metadata to wdoc's LiteLLM model loader.

  • Register MiniMax-M3 and MiniMax-M2.7 context, pricing, cache, input modality, and thinking metadata.
  • Add global and CN endpoint recipes with validation for unsupported selections.
  • Cover provider catalog registration, model metadata, and every configured endpoint.

Checks:

  • uv run --no-project --with 'litellm==1.84.0' --with 'pytest>=8.3.4' pytest -q tests/test_litellm_models.py
  • uv run --no-project --with 'litellm>=1.84.0' --with 'pytest>=8.3.4' pytest -q tests/test_litellm_models.py
  • uv run --no-project --with 'ruff==0.14.1' ruff format --check wdoc/utils/customs/litellm_models.py wdoc/wdoc.py tests/test_litellm_models.py
  • uv run --no-project --with 'ruff==0.14.1' ruff check wdoc/utils/customs/litellm_models.py tests/test_litellm_models.py
  • python3 -m py_compile wdoc/utils/customs/litellm_models.py wdoc/wdoc.py tests/test_litellm_models.py
  • git diff --check origin/main...HEAD

@thiswillbeyourgithub

Copy link
Copy Markdown
Owner

Hi, thanks a lot for the contribution. I have a few remarks before meeting though

Comment thread wdoc/utils/customs/litellm_models.py Outdated
Comment thread wdoc/utils/customs/add_extra_litellm_models_metadata.py
Comment thread wdoc/utils/customs/add_extra_litellm_models_metadata.py
Comment thread wdoc/utils/customs/add_extra_litellm_models_metadata.py
Comment thread wdoc/utils/customs/litellm_models.py Outdated
Comment thread wdoc/utils/customs/litellm_models.py Outdated
Comment thread wdoc/wdoc.py Outdated
@octo-patch

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I renamed the helper to add_extra_litellm_models_metadata.py, generalized and guarded the registration path, documented the MiniMax source URLs, and now skip models already present in LiteLLM. I have not opened a separate LiteLLM PR; this change now defers to LiteLLM metadata whenever it exists. I ran pytest -q tests/test_litellm_models.py, Ruff formatting checks on the changed helper and tests, compileall, and a real LiteLLM registration check.

@thiswillbeyourgithub

Copy link
Copy Markdown
Owner

All good. Thanks!

@thiswillbeyourgithub
thiswillbeyourgithub merged commit 5a6fd0a into thiswillbeyourgithub:main Aug 24, 2026
@thiswillbeyourgithub

Copy link
Copy Markdown
Owner

I just did a new release. Would you mind giving it a try?

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