Responses API rejects `truncation` ("truncation is not supported"), breaking VS Code Custom Endpoint
Problem
The Kimi Code OpenAI-compatible Responses endpoint (https://api.kimi.ai/coding/v1/responses) rejects requests that contain the standard OpenAI Responses field truncation:
400 {"error":{"code":"invalid_request_error","message":"invalid_request_error: invalid_request_error: truncation is not supported","type":"invalid_request_error"}}
VS Code (1.146.0, bundled Copilot extension 0.74.0) sends this field on every Responses request to a Custom Endpoint model. With default settings the value is "truncation": "disabled", which is also the OpenAI default; the client has no option to omit the field. As a result, Kimi Code cannot be used over Responses in VS Code chat, even though the docs recommend the Responses format for tools that support it (https://www.kimi.com/code/docs/en/kimi-code/models.html).
Steps to reproduce
- In VS Code, add a Custom Endpoint model with API type Responses, URL
https://api.kimi.ai/coding/v1, model IDk3.1-pro, and a Kimi Code API key. - Send any chat message.
- Every attempt fails with the 400 above.
Expected
Accept "truncation": "disabled" (it requests the default behavior), or ignore the field, instead of failing the request.
Notes
- The same key and model work in VS Code over Chat Completions.
- GitHub Copilot CLI 1.0.112 works against the same endpoint over Responses; its request body does not include
truncation. - Plan: Kimi Code membership (top tier), overseas endpoint.
- I did not test
"truncation": "auto". - Reported to VS Code as well (linked below once filed).
VS Code report: https://github.com/microsoft/vscode/issues/348418