mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
buildUrl: switch provider-name → config-driven. ?beta=true thành
urlSuffix per registry (claude/glm/kimi/minimax/minimax-cn/kimi-coding);
gemini path dùng format==="gemini"; accountId substitution giữ generic.
Xóa console.log('[DEBUG]') trong refreshCline.
Golden url-header 142 pass (byte-for-byte URL).
Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
523 B
JavaScript
19 lines
523 B
JavaScript
import { CLAUDE_API_HEADERS } from "../shared.js";
|
|
|
|
export default {
|
|
id: "minimax-cn",
|
|
alias: "minimax-cn",
|
|
transport: {
|
|
baseUrl: "https://api.minimaxi.com/anthropic/v1/messages",
|
|
format: "claude",
|
|
urlSuffix: "?beta=true",
|
|
headers: { ...CLAUDE_API_HEADERS }
|
|
},
|
|
models: [
|
|
{ id: "MiniMax-M3", name: "MiniMax M3", targetFormat: "claude" },
|
|
{ id: "MiniMax-M2.7", name: "MiniMax M2.7" },
|
|
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
{ id: "MiniMax-M2.1", name: "MiniMax M2.1" }
|
|
]
|
|
};
|