Skip to content

渠道类型 选择 阿里通义千问时,responses类型的端点不能访问 #6219

Closed as not planned

Description

@luxuluck

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

  • 文档:https://docs.newapi.ai/
  • 使用问题先看或先问:https://deepwiki.com/QuantumNous/new-api
  • 开启透传后的转发相关反馈不接受 issue;透传模式会直接转发请求,请自行确认上游行为。
  • 不接受 coding plan、逆向渠道等技术支持类 issue。
  • 警告:删除本模板、删除小节标题或随意清空内容的 issue,可能会被直接关闭;重复恶意提交者可能会被 block。

您当前的 newapi 版本

v1.0.0-rc.14

提交确认

  • 非重复 issue: 我已搜索现有 Issues,确认目前没有类似 issue。
  • 提交前必读: 我已完整阅读上方“提交前必读”,并已查看文档 https://docs.newapi.ai/、项目 README 且向 AI 提问,确认这不是使用、配置或接入类问题。
  • 模板完整: 我未删除此模板中的任何引导内容或小节标题,并会按要求完整填写。
  • 维护成本: 我理解项目维护者精力有限,不遵循模板要求的 issue 可能会被无视或直接关闭。

问题描述

渠道类型 选择 阿里通义千问时,使用的是token-plan
代码会拼出来 https://token-plan.cn-beijing.maas.aliyuncs.com/api/v2/apps/protocols/compatible-mode/v1/responses
这个地址实际已经不能使用。
返回的内容如下:
{
"code": "InternalError",
"message": "No gRPC response received",
"request_id": "dee235ff-e7cd-4115-86c0-16956c08fd24"
}

根据阿里云百炼的API文档:
OpenAI兼容-Responses API 的旧版URL路径 /api/v2/apps/protocols/compatible-mode/v1/responses 即将停止维护,请尽快迁移至新版路径 /compatible-mode/v1/responses。

[adaptor.go]文件第111行附近。需要修改为新的URL路径
fullRequestURL = fmt.Sprintf("%s/api/v2/apps/protocols/compatible-mode/v1/responses", info.ChannelBaseUrl)
改为
fullRequestURL = fmt.Sprintf("%s/compatible-mode/v1/responses", info.ChannelBaseUrl)

通过newapi的v1/responses调用时,会报这个错误
{
"error": {
"message": "openai_error",
"type": "bad_response_status_code",
"param": "",
"code": "bad_response_status_code"
}
}

复现步骤

预期结果

相关截图

Activity

  1. added
    bug
    on Jul 15, 2026
  2. new-api-reviewer-bot commented on Jul 15, 2026

    @new-api-reviewer-bot

    [Bot Review]

    感谢提交。当前版本信息、提交确认和问题描述已填写,但“复现步骤”还是空的;请补充从渠道配置到调用 /v1/responses 的具体步骤、相关模型/渠道配置要点,以及可复现的请求示例和返回信息。

  3. added
    invalid
    and removed
    bug
    on Jul 15, 2026
  4. seefs001 commented on Jul 15, 2026

    @seefs001
    Collaborator

    不接受 coding plan、逆向渠道等技术支持类 issue。

    提交前必读: 我已完整阅读上方“提交前必读”,并已查看文档 https://docs.newapi.ai/、项目 README 且向 AI 提问,确认这不是使用、配置或接入类问题。

    看起来并没有阅读提交前必读呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions