MiniMaxAdapter (llm/minimax.ts)

open-multi-agent · packages/core/src/llm/minimax.ts · typescript · MIT
ai

Thin wrapper around OpenAIAdapter for MiniMax, handling endpoint and key defaults.

// Source: https://github.com/open-multi-agent/open-multi-agent | License: MIT | Copyright Shenzhen YuanASI Technology Co., Ltd. and open-multi-agent contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * @fileoverview MiniMax adapter.
 *
 * Thin wrapper around OpenAIAdapter that hard-codes the official MiniMax
 * OpenAI-compatible endpoint and MINIMAX_API_KEY environment variable fallback.
 */

import type { EgressPolicy, LLMChatOptions, ThinkingConfig } from '../types.js'
import { OpenAIAdapter } from './openai.js'
import type { ReasoningOutboundOptions } from './reasoning-fallback.js'

/**
 * LLM adapter for MiniMax-M3.1-Flash and MiniMax-M3.
 * Explicit legacy and custom model names are passed through unchanged.
 *
 * Thread-safe. Can be shared across agen

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key