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:
parent
137a25e9ac
commit
c5815ad3f0
1 changed files with 5 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue