Skip to content

Commit 4817827

Browse files
authoredOct 5, 2024
fix(readme): add await to prompt.stream example (copilot-extensions#112)
Adds a small change to the `README.md` file. The change updates the example code to use `await` with the `prompt.stream` method for proper asynchronous handling.
1 parent 3743211 commit 4817827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Works the same way as `prompt()`, but resolves with a `stream` key instead of a
461461
```js
462462
import { prompt } from "@copilot-extensions/preview-sdk";
463463

464-
const { requestId, stream } = prompt.stream("What is the capital of France?", {
464+
const { requestId, stream } = await prompt.stream("What is the capital of France?", {
465465
token: process.env.TOKEN,
466466
});
467467

0 commit comments

Comments
 (0)
Failed to load comments.