@gemdoq/codi 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2276,20 +2276,15 @@ async function callLlmWithRetry(provider, conversation, registry, stream, option
|
|
|
2276
2276
|
callbacks: stream ? {
|
|
2277
2277
|
onToken: (text) => {
|
|
2278
2278
|
stopSpinner();
|
|
2279
|
-
if (showOutput && !streamedText) {
|
|
2280
|
-
process.stdout.write("\n" + renderAssistantPrefix() + "\n");
|
|
2281
|
-
}
|
|
2282
2279
|
streamedText += text;
|
|
2283
|
-
if (showOutput) {
|
|
2284
|
-
process.stdout.write(text);
|
|
2285
|
-
}
|
|
2286
2280
|
options.onToken?.(text);
|
|
2287
2281
|
}
|
|
2288
2282
|
} : void 0
|
|
2289
2283
|
});
|
|
2290
2284
|
if (streamedText) {
|
|
2291
2285
|
if (showOutput) {
|
|
2292
|
-
process.stdout.write("\n");
|
|
2286
|
+
process.stdout.write("\n" + renderAssistantPrefix() + "\n");
|
|
2287
|
+
console.log(renderMarkdown(streamedText));
|
|
2293
2288
|
}
|
|
2294
2289
|
return { ...response, _streamed: true };
|
|
2295
2290
|
}
|