From 21914af966709834c6fe102ec08906cafec2c5f8 Mon Sep 17 00:00:00 2001 From: herz758 Date: Sun, 24 May 2026 22:35:34 +0000 Subject: [PATCH] fix(minimax): align api_key params with official Anthropic-compatible API - Replace max_completion_tokens with max_tokens (official API param) - Replace reasoning_split boolean with thinking enum (disabled/enabled) - Applies to all MiniMax api_key models: m2, m2.1, m2.5, m2.7 (+ highspeed variants) - subscription models already correct (max_tokens, temperature, top_p) - Validation passes (113 models) --- models/minimax/minimax-m2.1-highspeed.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.1.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.5-highspeed.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.5.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.7-highspeed.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.7.yaml | 19 +++++++++++-------- models/minimax/minimax-m2.yaml | 19 +++++++++++-------- 7 files changed, 77 insertions(+), 56 deletions(-) diff --git a/models/minimax/minimax-m2.1-highspeed.yaml b/models/minimax/minimax-m2.1-highspeed.yaml index 3b2ca55..14add5a 100644 --- a/models/minimax/minimax-m2.1-highspeed.yaml +++ b/models/minimax/minimax-m2.1-highspeed.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.1-highspeed params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.1.yaml b/models/minimax/minimax-m2.1.yaml index 4e432e0..a726f62 100644 --- a/models/minimax/minimax-m2.1.yaml +++ b/models/minimax/minimax-m2.1.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.1 params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.5-highspeed.yaml b/models/minimax/minimax-m2.5-highspeed.yaml index ce62674..3dd528f 100644 --- a/models/minimax/minimax-m2.5-highspeed.yaml +++ b/models/minimax/minimax-m2.5-highspeed.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.5-highspeed params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.5.yaml b/models/minimax/minimax-m2.5.yaml index 9788dbc..cf92712 100644 --- a/models/minimax/minimax-m2.5.yaml +++ b/models/minimax/minimax-m2.5.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.5 params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.7-highspeed.yaml b/models/minimax/minimax-m2.7-highspeed.yaml index 8c2134c..3dda7b1 100644 --- a/models/minimax/minimax-m2.7-highspeed.yaml +++ b/models/minimax/minimax-m2.7-highspeed.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.7-highspeed params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.7.yaml b/models/minimax/minimax-m2.7.yaml index a8cf5df..9f469e1 100644 --- a/models/minimax/minimax-m2.7.yaml +++ b/models/minimax/minimax-m2.7.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2.7 params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning diff --git a/models/minimax/minimax-m2.yaml b/models/minimax/minimax-m2.yaml index 2b38d09..5c7b5ea 100644 --- a/models/minimax/minimax-m2.yaml +++ b/models/minimax/minimax-m2.yaml @@ -3,10 +3,10 @@ provider: minimax authType: api_key model: minimax-m2 params: - - path: max_completion_tokens + - path: max_tokens type: integer - label: Max completion tokens - description: Maximum number of tokens to generate in the completion. + label: Max tokens + description: Maximum number of tokens to generate in the response. range: min: 1 group: generation_length @@ -32,9 +32,12 @@ params: max: 1 step: 0.01 group: sampling - - path: reasoning_split - type: boolean - label: Split reasoning - description: Returns the model's reasoning in a separate reasoning_details field instead of inline with the response. - default: false + - path: thinking + type: enum + label: Thinking mode + description: Controls the thinking/reasoning mode. When enabled, the model shows its reasoning before the final answer. + default: disabled + values: + - disabled + - enabled group: reasoning