mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1135] [MERGED] feat: Update MiniMax provider with V2 API support and new M1 model #1730
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1135
Author: @onlylhf
Created: 6/20/2025
Status: ✅ Merged
Merged: 6/22/2025
Merged by: @crazywoola
Base:
main← Head:main📝 Commits (10+)
42d181eadd qwen3ca79fb5Merge branch 'langgenius:main' into main7e44a41Merge branch 'langgenius:main' into main80092afMerge branch 'langgenius:main' into maindd5b979Merge branch 'langgenius:main' into main163c5c5Merge branch 'langgenius:main' into mainc6d78befeat: Update MiniMax provider with V2 API support and new M1 model5b67844chore: Update MiniMax plugin version to 0.0.8cd45cb4Update models/minimax/requirements.txt69886dcfeat: Enhance MiniMax tool calling support across API versions📊 Changes
17 files changed (+1095 additions, -403 deletions)
View changed files
📝
.gitignore(+2 -0)📝
models/minimax/manifest.yaml(+6 -5)📝
models/minimax/models/llm/chat_completion.py(+9 -5)📝
models/minimax/models/llm/chat_completion_pro.py(+11 -6)➕
models/minimax/models/llm/chat_completion_v2.py(+442 -0)📝
models/minimax/models/llm/llm.py(+156 -37)➕
models/minimax/models/llm/minimax-m1.yaml(+37 -0)📝
models/minimax/models/llm/types.py(+71 -10)📝
models/minimax/models/text_embedding/text_embedding.py(+6 -3)📝
models/minimax/models/tts/speech-01-hd.yaml(+62 -62)📝
models/minimax/models/tts/speech-01-turbo.yaml(+62 -62)📝
models/minimax/models/tts/speech-02-hd.yaml(+62 -62)📝
models/minimax/models/tts/speech-02-turbo.yaml(+62 -62)📝
models/minimax/models/tts/tts.py(+94 -86)📝
models/minimax/provider/minimax.py(+1 -1)📝
models/minimax/provider/minimax.yaml(+11 -1)📝
models/minimax/requirements.txt(+1 -1)📄 Description
Related Issues or Context
Update MiniMax provider to support the latest V2 API and add new MiniMax-M1 model with enhanced capabilities including agent-thought, tool-call, and stream-tool-call features. This update improves compatibility with OpenAI format and enhances the overall functionality of the MiniMax integration.
fix https://github.com/langgenius/dify-official-plugins/issues/1026
fix https://github.com/langgenius/dify-official-plugins/issues/821
fix https://github.com/langgenius/dify-official-plugins/issues/476
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
LLM:

text_embedding:

tts:

Added V2 API support with improved message format handling and role mapping
Enhanced tool call support with OpenAI-compatible format and improved function call handling
Updated TTS models configuration and implementation
Updated pricing information for new MiniMax-M1 model
Added support for agent-thought feature in MiniMax-M1 model
Added new MiniMax-M1 model with 1M context size and enhanced parameter configuration
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.4.0in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.