MiniMax
本文主要介绍如何在接口中配置 MiniMax。
MiniMax 是领先的中文 AI 公司,提供针对中文对话和创意内容生成优化的模型。其模型支持 OpenAI 兼容协议,集成简单。如果你需要服务中文用户且关注定价竞争力,MiniMax 是自然的选择。
使用方式
// json — LLMConfig{"LLMType": "openai","Model": "MiniMax-M2.7","APIKey": "<your_minimax_api_key>","APIUrl": "https://api.minimax.chat/v1/text/chatcompletion_v2","Streaming": true,"SystemPrompt": "You are a helpful assistant.","History": 5,"MetaInfo": {}}
参数参考
字段 | 类型 | 必填 | 说明 |
LLMType | String | 是 | 固定值: "openai"。 |
Model | String | 是 | |
APIKey | String | 是 | |
APIUrl | String | 是 | MiniMax chat completions 端点。 |
Streaming | Boolean | 否 | 启用流式响应。默认值: true。 |
SystemPrompt | String | 否 | 系统指令。 |
History | Integer | 否 | 上下文轮次。默认值:0。 |
MetaInfo | Object | 否 | 自定义参数,会传入请求体中。 |