Skip to content

Commit

Permalink
Fix streamMode in useChat
Browse files Browse the repository at this point in the history
Default streamMode has changed to "stream-data"

Was causing
Something went wrong: Error: Failed to parse stream string. No separator found.
  • Loading branch information
yoziru committed May 8, 2024
1 parent 586e708 commit c53673e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/chat/chat-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function ChatPage({ chatId, setChatId }: ChatPageProps) {
setMessages,
} = useChat({
api: basePath + "/api/chat",
streamMode: "text",
onError: (error) => {
toast.error("Something went wrong: " + error);
},
Expand Down

0 comments on commit c53673e

Please sign in to comment.