Skip to content

docs: add MiniMax as LLM provider#94

Open
octo-patch wants to merge 1 commit into
HKUDS:mainfrom
octo-patch:feature/add-minimax-provider
Open

docs: add MiniMax as LLM provider#94
octo-patch wants to merge 1 commit into
HKUDS:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch

Copy link
Copy Markdown

Summary

Adds MiniMax as a supported LLM provider in AutoAgent. MiniMax exposes an OpenAI-compatible Chat Completions endpoint, so we can plug it into LiteLLM by routing through the existing openai/* provider with a custom API_BASE_URL, no library changes required.

Changes

  • .env.template: add MINIMAX_API_KEY= placeholder alongside the other optional provider keys.
  • README.md: add a MiniMax section under "auto main with different LLM Providers", following the same template as the Grok / OpenAI-compatible entry.

Why

MiniMax-M2.7 and MiniMax-M2.7-highspeed are competitive flagship models with a 200K context window and strong tool-use/coding performance, and the OpenAI-compatible endpoint makes them easy to use from any LiteLLM-based agent. Documenting the right env var + base URL combo saves users from guessing.

Testing

Verified end-to-end via LiteLLM with the documented configuration:

import litellm, os
os.environ["OPENAI_API_KEY"] = os.environ["MINIMAX_API_KEY"]
resp = litellm.completion(
    model="openai/MiniMax-M2.7",
    messages=[{"role": "user", "content": "Reply with the word: pong"}],
    api_base="https://api.minimax.io/v1",
    max_tokens=200,
    temperature=1.0,
)
# -> "pong"

Returns a valid completion against https://api.minimax.io/v1/chat/completions, confirming the documented commands work out of the box.

Add MINIMAX_API_KEY entry to .env.template and a usage section in
README.md so users can run AutoAgent against MiniMax models
(MiniMax-M2.7, MiniMax-M2.7-highspeed) through the existing
openai/* LiteLLM provider with API_BASE_URL=https://api.minimax.io/v1.
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