[Bug]: when I use minimax-2.7 model, it give me an error.

Author: bjutkevinCreated May 9, 2026Updated May 9, 2026

Installation Method | 安装方法与平台

Pip Install (I used latest requirements.txt)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

我根据这个配置修改了配置文件后,报错。

1. 设置 API_KEY

API_KEY = "your-minimax-api-key"

2. 配置 URL 重定向到 MiniMax 的 API 地址

API_URL_REDIRECT = { "https://api.openai.com/v1/chat/completions": "https://api.minimax.chat/v1/chat/completions" }

3. 在可用模型列表中添加 MiniMax 模型

AVAIL_LLM_MODELS = [ "gpt-4o", "gpt-4o-mini", "minimax-2.7", # 添加您的 MiniMax 模型名称 ]

4. 设置默认模型

LLM_MODEL = "minimax-2.7"

Screen Shot | 有帮助的截图

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

Source: binary-husky/gpt_academic