responses mode: 400 MissingParameter — missing `input.type` (deepseek-v4-flash); started today, chat mode works
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- api, backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Set the provider API to
responsesmode. - Send any message with DeepSeek V4 Flash.
- The turn fails with a 400
MissingParametererror (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 参数。
复现步骤:
- 把 provider 的 API 设置为
responses模式; - 用 DeepSeek V4 Flash 随便发一条消息;
- 回合失败,报 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 参数并被正常接受。
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4k
- Fork
- 357
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/command-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#933 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#855 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CommandCodeAI/command-code#841 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#655 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#608 ·
Tất cả issue của CommandCodeAI/command-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
collective/icalendar#1854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rancher/rancher-ai-agent#412 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
apache/arrow-java#1311 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Mend: dependency security vulnerability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
opentok/Opentok-Python-SDK#272 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NVIDIA/earth2studio#1203 ·
Maintainer thường phản hồi trong vòng 2 ngày