Skip to content

Commit 0962f46

Browse files
committed
rename
1 parent b546239 commit 0962f46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/convex/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const streamingComponent = new PersistentTextStreaming(
1010
components.persistentTextStreaming
1111
);
1212

13-
export const getAssistantResponse = query({
13+
export const getStreamBody = query({
1414
args: {
1515
streamId: StreamIdValidator,
1616
},

example/src/components/message-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function ServerMessage({
9393
}
9494

9595
const { text, status } = useStream(
96-
api.streaming.getAssistantResponse,
96+
api.streaming.getStreamBody,
9797
new URL(`${convexSiteUrl}/chat-stream`),
9898
driven,
9999
message.streamId as StreamId

0 commit comments

Comments
 (0)