From 2ca4c921b8d842af88dc25b067f794d480a5d6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B3=A20668000637?= Date: Wed, 4 Mar 2026 10:18:30 +0800 Subject: [PATCH] adapter MiniMax model , avoid tag output --- pkg/providers/openai_compat/provider.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/providers/openai_compat/provider.go b/pkg/providers/openai_compat/provider.go index 3a18b8b16..677b33470 100644 --- a/pkg/providers/openai_compat/provider.go +++ b/pkg/providers/openai_compat/provider.go @@ -140,6 +140,14 @@ func (p *Provider) Chat( requestBody[fieldName] = maxTokens } + if reasoning_split, ok := options["reasoning_split"].(bool); ok && reasoning_split { + requestBody["reasoning_split"] = true + } + + if strings.Contains(strings.ToLower(model), "minimax") { + requestBody["reasoning_split"] = true + } + if temperature, ok := asFloat(options["temperature"]); ok { lowerModel := strings.ToLower(model) // Kimi k2 models only support temperature=1.