Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions open-sse/executors/commandcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ export class CommandCodeExecutor extends BaseExecutor {
}

transformRequest(model, body, stream, credentials) {
// CommandCode API requires stream=true unconditionally.
// Set both top-level (OpenAI-format bodies) and params.stream
// (CommandCode-native bodies) to cover all code paths.
body.stream = true;
if (body.params) {
body.params.stream = true;
}
return body;
}

Expand Down