QuantumNous / QuantumNous/new-api

遇到opencode通过newapi接入minimax2.5,minimax输出几个tokens后就无输出,直到超时失败;但不经过newapi,直接访问上游minimax就没有这个问题。必现

Open
#4,656 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs reproduction / insufficient info
Dominant language
Go
Stars
48.5k
Forks
11.6k
Avg merge
1d 17h
Merged PRs (30d)
58

Description

提交前必读(请勿删除本节)

您当前的 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.