Skip to content

Commit ad15797

Browse files
authored
Update README.md
1 parent 5b8e5b8 commit ad15797

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export const getChatBody = query({
9595
// Create an HTTP action that generates chunks of the chat body
9696
// and uses the component to stream them to the client and save them to the database.
9797
export const streamChat = httpAction(async (ctx, request) => {
98+
const body = (await request.json()) as {streamId: string};
9899
const generateChat = async (ctx, request, streamId, chunkAppender) => {
99100
await chunkAppender("Hi there!");
100101
await chunkAppender("How are you?");

0 commit comments

Comments
 (0)