From 12dcfb58cef5e43e8c6c1c6fe51c153e7e4c2d04 Mon Sep 17 00:00:00 2001 From: Tiago Pascoal Date: Sat, 5 Oct 2024 20:18:14 +0100 Subject: [PATCH] Fix missing await in prompt.stream example The call to prompt.stream was missing an await in the example provided in the readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ed7bf3..d904fc3 100644 --- a/README.md +++ b/README.md @@ -461,7 +461,7 @@ Works the same way as `prompt()`, but resolves with a `stream` key instead of a ```js import { prompt } from "@copilot-extensions/preview-sdk"; -const { requestId, stream } = prompt.stream("What is the capital of France?", { +const { requestId, stream } = await prompt.stream("What is the capital of France?", { token: process.env.TOKEN, });