fix(commandcode): force stream=true in transformRequest

CommandCode upstream only speaks NDJSON streaming; the executor always
wraps it as OpenAI SSE. Force body.stream=true so non-stream client
requests still produce a parseable upstream stream (router aggregates
SSE→JSON downstream).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mr. Nasıl
2026-06-08 09:21:52 +07:00
committed by decolua
parent 137a25e9ac
commit c5815ad3f0

View File

@@ -19,6 +19,11 @@ export class CommandCodeExecutor extends BaseExecutor {
super("commandcode", PROVIDERS.commandcode);
}
transformRequest(model, body, stream, credentials) {
body.stream = true;
return body;
}
buildHeaders(credentials, stream = true) {
const headers = {
"Content-Type": "application/json",