Feature request: `response_format` support for MiniMax M2.5 via OpenAI-compatible API
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- json
- Bereich
- api
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 588
- Forks
- 83
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus MiniMax-AI/MiniMax-M2.5
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
MiniMax-AI/MiniMax-M2.5#41 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 48/100
MiniMax-AI/MiniMax-M2.5#39 ·
-
aa_lcr/ifbench数据集评测疑问Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
MiniMax-AI/MiniMax-M2.5#38 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
MiniMax-AI/MiniMax-M2.5#37 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
MiniMax-AI/MiniMax-M2.5#36 · 3 Kommentare ·
Alle Issues in MiniMax-AI/MiniMax-M2.5
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
eclipse-jgit/jgit#329 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Media browser returns "Not found" for repositories using the SHA-256 object formatEvtl. vergeben @adamchodera hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100