Skip to content

Commit 8d0a20c

Browse files
committed
chore: update changeset
1 parent b747a56 commit 8d0a20c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.changeset/gentle-jokes-fail.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
"@clack/prompts": minor
33
---
44

5-
Adds `stream` API which provides the same hooks as `log`, but for iterable message streams (generated by LLM-like tools, among others.)
5+
Adds `stream` API which provides the same methods as `log`, but for iterable (even async) message streams. This is particularly useful for AI responses which are dynamically generated by LLMs.
6+
7+
```ts
8+
import * as p from '@clack/prompts';
9+
10+
await p.stream.step((async function* () {
11+
yield* generateLLMResponse(question);
12+
})())
13+
```

0 commit comments

Comments
 (0)