{"_id":"@amux.ai/adapter-minimax","_rev":"2-d78d2f5f2549bf4ff0c636f161f733b0","name":"@amux.ai/adapter-minimax","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@amux.ai/adapter-minimax","version":"0.1.0","keywords":["amux","llm","minimax","adapter"],"author":{"name":"isboyjc"},"license":"MIT","_id":"@amux.ai/adapter-minimax@0.1.0","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"dist":{"shasum":"679cdd6d0f1bf273995113cd2ccd809e99db240c","tarball":"https://registry.npmjs.org/@amux.ai/adapter-minimax/-/adapter-minimax-0.1.0.tgz","fileCount":8,"integrity":"sha512-qJBZMGrtsKONAPIeU1GbzfIVVorIHc/b4CFx0IbjNBithR/nTMLNau++L9TzaOolObB2IBtIiJF2LyJaKGuK+A==","signatures":[{"sig":"MEUCIQDn7LO4HAbPYOCeDtKa7Og2QWM2QTfCf1HlSDSLClSBUQIgNwZqH6Q3MXK+mh0jp5VmNDvMPIFJtkxIMehwdFdGsjk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":139090},"main":"./dist/index.cjs","type":"module","_from":"file:amux.ai-adapter-minimax-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/16df1f2aec7d12e2f2729acc8d47f3ce/amux.ai-adapter-minimax-0.1.0.tgz","_integrity":"sha512-qJBZMGrtsKONAPIeU1GbzfIVVorIHc/b4CFx0IbjNBithR/nTMLNau++L9TzaOolObB2IBtIiJF2LyJaKGuK+A==","repository":{"url":"git+https://github.com/isboyjc/amux.git","type":"git","directory":"packages/adapter-minimax"},"_npmVersion":"10.9.2","description":"MiniMax adapter for Amux","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@amux.ai/llm-bridge":"0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vitest":"^1.2.1","typescript":"^5.3.3","@types/node":"^20.11.5"},"_npmOperationalInternal":{"tmp":"tmp/adapter-minimax_0.1.0_1769632643562_0.9345533251825882","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@amux.ai/adapter-minimax","version":"0.1.1","description":"MiniMax adapter for Amux","keywords":["amux","llm","minimax","adapter"],"repository":{"type":"git","url":"git+https://github.com/isboyjc/amux.git","directory":"packages/adapter-minimax"},"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"license":"MIT","author":{"name":"isboyjc"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"@amux.ai/llm-bridge":"0.3.2"},"devDependencies":{"@types/node":"^20.11.5","tsup":"^8.0.1","typescript":"^5.3.3","vitest":"^1.2.1"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","typecheck":"tsc --noEmit","lint":"eslint src --ext .ts","clean":"rm -rf dist"},"_id":"@amux.ai/adapter-minimax@0.1.1","_integrity":"sha512-l/x3Tfjjum//71ge3+noHKlaLGJqgBxv8jcdVUbfXLpm69cbguW7f+LfN0pF38cJTYb4EKCZsjuFbCd5JN0JeQ==","_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/0b7bb6e1384e9b3d99429cf2d18f40da/amux.ai-adapter-minimax-0.1.1.tgz","_from":"file:amux.ai-adapter-minimax-0.1.1.tgz","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-l/x3Tfjjum//71ge3+noHKlaLGJqgBxv8jcdVUbfXLpm69cbguW7f+LfN0pF38cJTYb4EKCZsjuFbCd5JN0JeQ==","shasum":"b538f8e192918570cf7bc4cc27b2fe6235571c92","tarball":"https://registry.npmjs.org/@amux.ai/adapter-minimax/-/adapter-minimax-0.1.1.tgz","fileCount":8,"unpackedSize":139090,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9mS0xGe2yB6QyfLUdF64RqSTLlC2ko3sRtYcRXm+lwQIhAJDuvSH3FnM7uyoieM3eX+Yd0s2bcVYv5kuntdcB194z"}]},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"directories":{},"maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-minimax_0.1.1_1770213328171_0.8421587025101713"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-28T20:37:23.160Z","modified":"2026-02-04T13:55:28.455Z","0.1.0":"2026-01-28T20:37:23.725Z","0.1.1":"2026-02-04T13:55:28.311Z"},"bugs":{"url":"https://github.com/isboyjc/amux/issues"},"author":{"name":"isboyjc"},"license":"MIT","homepage":"https://github.com/isboyjc/amux#readme","keywords":["amux","llm","minimax","adapter"],"repository":{"type":"git","url":"git+https://github.com/isboyjc/amux.git","directory":"packages/adapter-minimax"},"description":"MiniMax adapter for Amux","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"readme":"# @amux.ai/adapter-minimax\n\nMiniMax adapter for Amux - bidirectional LLM API adapter.\n\n## Features\n\n- ✅ OpenAI-compatible API format\n- ✅ Interleaved Thinking support (reasoning_details)\n- ✅ Streaming support\n- ✅ Function calling / Tool use\n- ✅ System prompts\n- ✅ JSON mode\n- ✅ Temperature range validation (0.0, 1.0]\n\n## Installation\n\n```bash\npnpm add @amux.ai/adapter-minimax\n```\n\n## Usage\n\n### Basic Example\n\n```typescript\nimport { createBridge } from '@amux.ai/llm-bridge'\nimport { minimaxAdapter } from '@amux.ai/adapter-minimax'\nimport { openaiAdapter } from '@amux.ai/adapter-openai'\n\nconst bridge = createBridge({\n  inboundAdapter: openaiAdapter,\n  outboundAdapter: minimaxAdapter,\n  apiKey: process.env.MINIMAX_API_KEY!,\n})\n\nconst response = await bridge.chat({\n  messages: [\n    { role: 'user', content: 'Hello!' },\n  ],\n})\n\nconsole.log(response.choices[0]?.message.content)\n```\n\n### Streaming with Interleaved Thinking\n\n```typescript\nimport { createBridge } from '@amux.ai/llm-bridge'\nimport { minimaxAdapter } from '@amux.ai/adapter-minimax'\nimport { openaiAdapter } from '@amux.ai/adapter-openai'\n\nconst bridge = createBridge({\n  inboundAdapter: openaiAdapter,\n  outboundAdapter: minimaxAdapter,\n  apiKey: process.env.MINIMAX_API_KEY!,\n})\n\n// Enable reasoning split to get reasoning_details\nconst ir = openaiAdapter.inbound.parseRequest({\n  model: 'MiniMax-M2.1',\n  messages: [\n    { role: 'user', content: 'Solve this complex problem...' },\n  ],\n  stream: true,\n})\n\n// Add reasoning_split extension\nir.extensions = {\n  minimax: {\n    reasoning_split: true,\n  },\n}\n\nconst stream = await bridge.chatStream(ir)\n\nfor await (const event of stream) {\n  if (event.type === 'reasoning') {\n    console.log('Thinking:', event.reasoning?.delta)\n  } else if (event.type === 'content') {\n    console.log('Content:', event.content?.delta)\n  }\n}\n```\n\n## Supported Models\n\n- `MiniMax-M2.1` - Strong multilingual programming capabilities (output speed ~60 tps)\n- `MiniMax-M2.1-lightning` - Lightning version: faster and more agile (output speed ~100 tps)\n- `MiniMax-M2` - Designed for efficient coding and Agent workflows\n\n## Capabilities\n\n| Feature | Supported |\n|---------|-----------|\n| Streaming | ✅ |\n| Tools | ✅ |\n| Vision | ❌ |\n| Multimodal | ❌ |\n| System Prompt | ✅ |\n| Tool Choice | ✅ |\n| Reasoning | ✅ |\n| Web Search | ❌ |\n| JSON Mode | ✅ |\n| Logprobs | ❌ |\n| Seed | ❌ |\n\n## API Endpoint\n\n- **Base URL**: `https://api.minimaxi.com`\n- **Chat Path**: `/v1/chat/completions`\n- **Models Path**: `/v1/models`\n\n## Special Features\n\n### Interleaved Thinking\n\nMiniMax M2.1 supports Interleaved Thinking through the `reasoning_details` field. To enable it:\n\n1. Set `reasoning_split: true` in the request (via extensions)\n2. The reasoning content will be separated into `reasoning_details` array\n3. Each detail has `type: 'thinking'` and `text` fields\n\n### Temperature Range\n\nMiniMax has a strict temperature range of (0.0, 1.0]:\n\n- Minimum: 0.01 (values ≤ 0.0 are clamped to 0.01)\n- Maximum: 1.0 (values > 1.0 are clamped to 1.0)\n- Recommended: 1.0\n\n## Unsupported OpenAI Parameters\n\nThe following OpenAI parameters are not supported by MiniMax:\n\n- `presence_penalty`\n- `frequency_penalty`\n- `logit_bias`\n- `logprobs`\n- `seed`\n- `n` (only supports value 1)\n\n## Documentation\n\nFor more information about MiniMax models:\n\n- [MiniMax Text Generation Guide](https://platform.minimax.com/docs/guides/text-generation)\n- [OpenAI API Compatibility](https://platform.minimax.com/docs/api-reference/text-openai-api)\n- [MiniMax M2.1 Release](https://minimax.com/news/minimax-m21)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}