Skip to content

Commit 13ca8e1

Browse files
authored
✨ feat: Support Interleaved thinking in MiniMax (#10255)
feat: Enhance LobeMinimaxAI with interleaved thinking and message processing - Updated LobeMinimaxAI to handle new message structure including reasoning details. - Added logic to process messages for reasoning content and signatures. - Resolved parameters with constraints and included reasoning_split in the payload. test: Update snapshots for NovitaAI, OpenAI, and PPIO models - Added new models and updated existing model descriptions in snapshots for NovitaAI. - Updated OpenAI model snapshots to reflect new model additions and descriptions. - Included new DeepSeek models in PPIO snapshots with detailed descriptions. fix: Improve error messages for quota and permission issues - Enhanced error messages for quota limits and permissions to improve clarity and user experience.
1 parent fbcd046 commit 13ca8e1

File tree

9 files changed

+2552
-8
lines changed

9 files changed

+2552
-8
lines changed

packages/model-runtime/src/core/contextBuilders/openai.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export const convertOpenAIMessages = async (messages: OpenAI.ChatCompletionMessa
5151

5252
// it's compatible for DeepSeek
5353
if (msg.reasoning_content !== undefined) result.reasoning_content = msg.reasoning_content;
54+
// MiniMax uses reasoning_details for historical thinking, so forward it unchanged
55+
if (msg.reasoning_details !== undefined) result.reasoning_details = msg.reasoning_details;
5456

5557
return result;
5658
}),

0 commit comments

Comments
 (0)