QuantumNous / QuantumNous/new-api
遇到opencode通过newapi接入minimax2.5,minimax输出几个tokens后就无输出,直到超时失败;但不经过newapi,直接访问上游minimax就没有这个问题。必现
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 48.5k
- Forks
- 11.6k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 58
Description
提交前必读(请勿删除本节)
- 文档:https://docs.newapi.ai/
- 使用问题先看或先问:https://deepwiki.com/QuantumNous/new-api
- 警告:删除本模板、删除小节标题或随意清空内容的 issue,可能会被直接关闭;重复恶意提交者可能会被 block。
您当前的 newapi 版本
20260506 main分支,之前老版本也一样,今天拉去最新版本测试结果一样
提交确认
- 我已确认目前没有类似 issue
- 我已完整查看过文档 https://docs.newapi.ai/ 和项目 README,尤其是常见问题部分
- 我未删除此模板中的任何引导内容或小节标题,并会按要求完整填写
- 我理解项目维护者精力有限,不遵循模板要求的 issue 可能会被无视或直接关闭
问题描述
遇到opencode通过newapi接入minimax2.5,minimax输出几个tokens后就无输出,直到超时失败;但不经过newapi,直接访问上游minimax就没有这个问题。必现
接入方式openai兼容和anthropic都尝试过,完全透传模式。
流式
复现步骤
让opencode写web测试用例,大模型开始输出了,但后续超时
预期结果
当然是输出成功,测试用例写入文件了
相关截图
opencode报:tool execution aborted,查看newapi请求日志,显示timeout
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the streaming request from opencode through new-api to MiniMax 2.5 in both OpenAI-compatible and Anthropic modes, using the request log that reports a timeout. Compare that behavior with a direct upstream request and identify where output stops. Done means the streamed response completes and the tool execution writes the test file successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100