Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

responses mode: 400 MissingParameter — missing `input.type` (deepseek-v4-flash); started today, chat mode works

未關閉
#950 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍

研究方向

Start by tracing the responses-mode request construction for the new-provider and DeepSeek V4 Flash path, then compare its serialized payload with the working chat-mode request. Reproduce the 400 error and verify that the completed request includes input.type and succeeds without changing chat mode.

由索引模型根據 Issue 內容生成。

描述

Bug description

Since this morning, requests in responses API mode are rejected by the provider with a 400 error. Switching the same provider/model to chat (chat completions) mode works fine.

This is a regression: responses mode worked normally until yesterday with the same setup. The provider's error suggests ZCode's responses-mode request is now missing the required input.type parameter.

Steps to reproduce
  1. Set the provider API to responses mode.
  2. Send any message with DeepSeek V4 Flash.
  3. The turn fails with a 400 MissingParameter error (see below).

Switching the provider API to chat mode with the same model makes it work again.

Error details
  • provider: new-provider
  • model: deepseek/deepseek-v4-flash
  • reason: invalid_request (status 400, not retryable)
  • TraceID: 0af922c4-84b4-45ae-9062-6a7d2730a8b1
  • Provider response:
{"type":"BadRequest","code":"MissingParameter","message":"The request failed because it is missing `input.type` parameter. Request id: 02179055413037678af8113c224ccdd69578c3b63d1e71a579929 trace_id: 706c96776d86abe6b54c9ced0e850c37"}
Expected behavior

Responses-mode requests should include the input.type parameter and be accepted, as they were before today.


中文说明(Chinese summary)

问题描述:

从今天早上开始,使用 responses API 模式发请求会被服务商以 400 错误拒绝;把同样的模型换成 chat(chat completions)模式就一切正常。

在此之前(昨天为止)同样的配置一直正常,属于突然出现的回归问题。服务商的报错提示表明:ZCode 在 responses 模式下发出的请求缺少了必需的 input.type 参数。

复现步骤:

  1. 把 provider 的 API 设置为 responses 模式;
  2. 用 DeepSeek V4 Flash 随便发一条消息;
  3. 回合失败,报 400 MissingParameter 错误(详情见上方英文部分)。

把 provider 的 API 换成 chat 模式后,同一个模型即可正常使用。

报错详情:

  • provider: new-provider
  • model: deepseek/deepseek-v4-flash
  • reason: invalid_request(状态码 400,不可重试)
  • TraceID: 0af922c4-84b4-45ae-9062-6a7d2730a8b1
  • 服务商返回:
{"type":"BadRequest","code":"MissingParameter","message":"The request failed because it is missing `input.type` parameter. Request id: 02179055413037678af8113c224ccdd69578c3b63d1e71a579929 trace_id: 706c96776d86abe6b54c9ced0e850c37"}

期望行为:

responses 模式的请求应像今天之前一样,带上 input.type 参数并被正常接受。

主要語言
沒有語言資料
星號
4k
分支
357
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CommandCodeAI/command-code 的其他 Issue

查看 CommandCodeAI/command-code 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。