Feature request: `response_format` support for MiniMax M2.5 via OpenAI-compatible API
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- json
- 領域
- api
調査の方向性
The issue names the OpenAI-compatible POST /v1/chat/completions endpoint and response_format, but no repository files or tests. Start by locating the endpoint implementation and its model capability handling, then check how json_object and json_schema are validated for other models. Done means M2.5 returns valid JSON for json_object and follows the supplied schema for json_schema, with the supported behavior documented.
索引モデルが issue の本文から書いたものです。
説明
Summary
MiniMax M2.5 does not support response_format (neither json_object nor json_schema) via the OpenAI-compatible chat completions endpoint. The native API documentation explicitly states this feature is "only supported by MiniMax-Text-01". This makes M2.5 unsuitable for production workloads that require structured JSON output.
Current behaviour
When sending response_format: { "type": "json_object" } to POST /v1/chat/completions with M2.5:
- The parameter is silently ignored. No error or warning is returned.
- The model generates free-form text that may contain JSON, but is not constrained to valid JSON.
Additionally, when relying on prompt-based JSON instructions (the only available workaround), M2.5 frequently produces structurally malformed JSON. We observed a recurring defect across multiple production runs: the model drops the opening{brace for object elements inside arrays:
// Expected:
[{title: SEO Improvement, score: 8}, {title: Content Gap, score: 6}]
// Actual M2.5 output:
[{title: SEO Improvement, score: 8}, title: Content Gap, score: 6}]
This occurred consistently with schemas containing 10+ fields with nested objects and arrays. We had to implement a context-aware JSON repair function to work around this, which adds complexity and is inherently fragile.
Expected behaviour
response_format should be supported for M2.5 via the OpenAI-compatible API:
{ "type": "json_object" }should constrain output to syntactically valid JSON{ "type": "json_schema", "json_schema": { "schema": ... } }should constrain output to JSON matching the provided schema
If fulljson_schemamode is not feasible for M2.5,json_objectmode alone would be a significant improvement; it would guarantee valid JSON syntax even without schema conformance.
Documentation gap
The OpenAI-compatible API documentation page does not mention response_format at all; it is absent from the supported parameters table and not listed among the "ignored" parameters either. The only documentation of response_format is in the native API spec, which states it is MiniMax-Text-01 only.
A clear compatibility matrix (per model, per API flavour) would help developers evaluate MiniMax models before committing to integration.
Impact
We evaluated M2.5 for a production AI pipeline processing 12 agents with structured output requirements. Despite M2.5's strong raw capabilities (204K context, competitive pricing), we abandoned it after 2 production runs due to the combination of:
- No
response_formatsupport (silent ignore) - Consistent malformed JSON output from prompt-based workarounds
- Error 2013 (
"invalid chat setting") when using multiple system messages (which blocked one workaround path for schema injection)
We switched to OpenAI GPT-5-nano with nativeresponse_formatsupport (json_schemamode withstrict: true), which works reliably.
Questions
- Is there a roadmap for adding
response_formatto M2.5 via the OpenAI-compatible API? - Is the malformed JSON issue (dropped opening braces) a known model-level problem?
- Would the MiniMax team consider adding
response_formatto the OpenAI-compatible endpoint for M2.5, even if onlyjson_objectmode?
- 主要言語
- 言語のデータがありません
- スター
- 588
- フォーク
- 83
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/MiniMax-M2.5 のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
MiniMax-AI/MiniMax-M2.5#41 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 48/100
MiniMax-AI/MiniMax-M2.5#39 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
MiniMax-AI/MiniMax-M2.5#38 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
MiniMax-AI/MiniMax-M2.5#37 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
MiniMax-AI/MiniMax-M2.5#36 · コメント 3 件 ·
MiniMax-AI/MiniMax-M2.5 の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
grafana/viz-contract#151 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
erigontech/erigon#27233 ·
メンテナーはふだん 1 日以内に返信
-
integration: matter
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
home-assistant/core#196219 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
area:api p2 product:business triage:active type:feat
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
cuadrao-ai/argus#2656 ·
メンテナーはふだん 1 日以内に返信