We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ceed4 commit b6c721dCopy full SHA for b6c721d
typescript/effect-ai/src/basic/example.ts
@@ -72,7 +72,7 @@ const program = Effect.gen(function* () {
72
Stream.runForEach((part) => {
73
// Only print text deltas to show streaming effect
74
if (part.type === 'text-delta') {
75
- return Console.log(part.delta);
+ return Effect.sync(() => process.stdout.write(part.delta));
76
}
77
// Log other part types for demonstration
78
return Console.log(`[${part.type}]`);
0 commit comments