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 5b8e5b8 commit ad15797Copy full SHA for ad15797
README.md
@@ -95,6 +95,7 @@ export const getChatBody = query({
95
// Create an HTTP action that generates chunks of the chat body
96
// and uses the component to stream them to the client and save them to the database.
97
export const streamChat = httpAction(async (ctx, request) => {
98
+ const body = (await request.json()) as {streamId: string};
99
const generateChat = async (ctx, request, streamId, chunkAppender) => {
100
await chunkAppender("Hi there!");
101
await chunkAppender("How are you?");
0 commit comments