From 186e25a0b3d38e79bd648c549132ebd4af279b6d Mon Sep 17 00:00:00 2001 From: octo-patch <266937838+octo-patch@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:38:33 +0800 Subject: [PATCH] Add MiniMax OpenCode provider presets --- config/opencode/opencode.json | 240 +++++++++++++++++++++++++++++++++- 1 file changed, 239 insertions(+), 1 deletion(-) diff --git a/config/opencode/opencode.json b/config/opencode/opencode.json index 2ace2d4..8bdebe7 100644 --- a/config/opencode/opencode.json +++ b/config/opencode/opencode.json @@ -1,5 +1,243 @@ { "$schema": "https://opencode.ai/config.json", "autoupdate": false, - "permission": "allow" + "permission": "allow", + "provider": { + "minimax-openai": { + "name": "MiniMax OpenAI-compatible (Global)", + "env": ["MINIMAX_API_KEY"], + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "https://api.minimax.io/v1" + }, + "models": { + "MiniMax-M3": { + "name": "MiniMax-M3", + "attachment": true, + "reasoning": true, + "cost": { + "input": 0.6, + "output": 2.4, + "cache_read": 0.12 + }, + "limit": { + "context": 1000000, + "output": 128000 + }, + "modalities": { + "input": ["text", "image", "video"], + "output": ["text"] + }, + "variants": { + "none": { + "thinking": { + "type": "disabled" + } + }, + "thinking": { + "thinking": { + "type": "adaptive" + } + } + } + }, + "MiniMax-M2.7": { + "name": "MiniMax-M2.7", + "attachment": false, + "reasoning": true, + "cost": { + "input": 0.3, + "output": 1.2, + "cache_read": 0.06, + "cache_write": 0.375 + }, + "limit": { + "context": 204800, + "output": 131072 + }, + "modalities": { + "input": ["text"], + "output": ["text"] + } + } + } + }, + "minimax-openai-cn": { + "name": "MiniMax OpenAI-compatible (China)", + "env": ["MINIMAX_API_KEY"], + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "https://api.minimaxi.com/v1" + }, + "models": { + "MiniMax-M3": { + "name": "MiniMax-M3", + "attachment": true, + "reasoning": true, + "cost": { + "input": 0.6, + "output": 2.4, + "cache_read": 0.12 + }, + "limit": { + "context": 1000000, + "output": 128000 + }, + "modalities": { + "input": ["text", "image", "video"], + "output": ["text"] + }, + "variants": { + "none": { + "thinking": { + "type": "disabled" + } + }, + "thinking": { + "thinking": { + "type": "adaptive" + } + } + } + }, + "MiniMax-M2.7": { + "name": "MiniMax-M2.7", + "attachment": false, + "reasoning": true, + "cost": { + "input": 0.3, + "output": 1.2, + "cache_read": 0.06, + "cache_write": 0.375 + }, + "limit": { + "context": 204800, + "output": 131072 + }, + "modalities": { + "input": ["text"], + "output": ["text"] + } + } + } + }, + "minimax-anthropic": { + "name": "MiniMax Anthropic-compatible (Global)", + "env": ["MINIMAX_API_KEY"], + "npm": "@ai-sdk/anthropic", + "options": { + "baseURL": "https://api.minimax.io/anthropic" + }, + "models": { + "MiniMax-M3": { + "name": "MiniMax-M3", + "attachment": true, + "reasoning": true, + "cost": { + "input": 0.6, + "output": 2.4, + "cache_read": 0.12 + }, + "limit": { + "context": 1000000, + "output": 128000 + }, + "modalities": { + "input": ["text", "image", "video"], + "output": ["text"] + }, + "variants": { + "none": { + "thinking": { + "type": "disabled" + } + }, + "thinking": { + "thinking": { + "type": "adaptive" + } + } + } + }, + "MiniMax-M2.7": { + "name": "MiniMax-M2.7", + "attachment": false, + "reasoning": true, + "cost": { + "input": 0.3, + "output": 1.2, + "cache_read": 0.06, + "cache_write": 0.375 + }, + "limit": { + "context": 204800, + "output": 131072 + }, + "modalities": { + "input": ["text"], + "output": ["text"] + } + } + } + }, + "minimax-anthropic-cn": { + "name": "MiniMax Anthropic-compatible (China)", + "env": ["MINIMAX_API_KEY"], + "npm": "@ai-sdk/anthropic", + "options": { + "baseURL": "https://api.minimaxi.com/anthropic" + }, + "models": { + "MiniMax-M3": { + "name": "MiniMax-M3", + "attachment": true, + "reasoning": true, + "cost": { + "input": 0.6, + "output": 2.4, + "cache_read": 0.12 + }, + "limit": { + "context": 1000000, + "output": 128000 + }, + "modalities": { + "input": ["text", "image", "video"], + "output": ["text"] + }, + "variants": { + "none": { + "thinking": { + "type": "disabled" + } + }, + "thinking": { + "thinking": { + "type": "adaptive" + } + } + } + }, + "MiniMax-M2.7": { + "name": "MiniMax-M2.7", + "attachment": false, + "reasoning": true, + "cost": { + "input": 0.3, + "output": 1.2, + "cache_read": 0.06, + "cache_write": 0.375 + }, + "limit": { + "context": 204800, + "output": 131072 + }, + "modalities": { + "input": ["text"], + "output": ["text"] + } + } + } + } + } }