feat: add CommandCode provider support

This commit is contained in:
decolua
2026-05-07 23:01:33 +07:00
parent ca84e988c0
commit b72a443bd3
12 changed files with 395 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export async function handleChatCore({ body, modelInfo, credentials, log, onCred
}
const clientRequestedStreaming = body.stream === true || sourceFormat === FORMATS.ANTIGRAVITY || sourceFormat === FORMATS.GEMINI || sourceFormat === FORMATS.GEMINI_CLI;
const providerRequiresStreaming = provider === "openai" || provider === "codex";
const providerRequiresStreaming = provider === "openai" || provider === "codex" || provider === "commandcode";
let stream = providerRequiresStreaming ? true : (body.stream !== false);
// Check client Accept header preference for non-streaming requests