mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
fix: refine protocol types
This commit is contained in:
@@ -171,7 +171,8 @@ export async function runNonInteractive(
|
||||
debugMode: config.getDebugMode(),
|
||||
});
|
||||
|
||||
const isStreamJsonOutput = config.getOutputFormat() === 'stream-json';
|
||||
const isStreamJsonOutput =
|
||||
config.getOutputFormat() === OutputFormat.STREAM_JSON;
|
||||
const streamJsonContext = options.streamJson;
|
||||
const streamJsonWriter = isStreamJsonOutput
|
||||
? (streamJsonContext?.writer ??
|
||||
|
||||
Reference in New Issue
Block a user