Skip to content

feat: upgrade MiniMax to M2.7 models with OpenAI-compatible API#65

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

feat: upgrade MiniMax to M2.7 models with OpenAI-compatible API#65
octo-patch wants to merge 1 commit into53AI:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

Upgrade MiniMax integration from legacy abab* models to the latest M2.7 series with proper OpenAI-compatible API support.

Problem

The current MiniMax integration (via upstream one-api v0.6.10) uses:

  • Legacy models: abab6.5-chat, abab5.5-chat, etc.
  • Deprecated endpoint: /v1/text/chatcompletion_v2 (MiniMax proprietary format)

MiniMax has since released the M2.7 model family and a standard OpenAI-compatible API at api.minimax.io/v1.

Changes

  • Model list: Add MiniMax-M2.7 and MiniMax-M2.7-highspeed (204K context, competitive pricing at /bin/bash.3-0.6/M input tokens) while keeping legacy abab* models for backward compatibility
  • URL routing: Switch from deprecated /v1/text/chatcompletion_v2 to standard /v1/chat/completions endpoint
  • Tests: 6 unit tests (model list, channel meta, URL routing) + 2 integration tests (chat completion + streaming)

Migration for existing users

Users with MiniMax channels should update their Base URL to:

  • International: https://api.minimax.io
  • China: https://api.minimaxi.com

MiniMax M2.7 Highlights

Model Input Output Context
MiniMax-M2.7 /bin/bash.3/M tokens .2/M tokens 204K
MiniMax-M2.7-highspeed /bin/bash.6/M tokens .4/M tokens 204K

Test Plan

  • Unit tests pass (6/6): model list, backward compat, channel meta, URL routing
  • Integration tests pass (2/2): M2.7 chat completion + streaming with real API
  • Existing channel routing for other providers unaffected (regression test)

API Documentation

- Update MiniMax model list: add MiniMax-M2.7 and MiniMax-M2.7-highspeed
  alongside legacy abab* models for backward compatibility
- Switch MiniMax URL routing from deprecated /v1/text/chatcompletion_v2
  to standard OpenAI-compatible /v1/chat/completions endpoint
- Remove unused minimax adaptor import from adaptor.go
- Add unit tests for model list, channel meta, and URL routing (6 tests)
- Add integration tests for MiniMax M2.7 API (chat + streaming)

The upstream one-api v0.6.10 dependency only includes the legacy abab*
models which use MiniMax's old proprietary API format. MiniMax now offers
a standard OpenAI-compatible API at api.minimax.io/v1 with the M2.7
series models. Users should configure their MiniMax channel base URL
as https://api.minimax.io (or https://api.minimaxi.com for China).
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