Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
useChat cutting streaming response short?
Post Flair (click to view more posts with a particular flair)
Post Body

Hello, I am running the AI chat bot vercel template (https://vercel.com/templates/next.js/nextjs-ai-chatbot) and using the useChat hook for talking with GPT-4o. When running locally, I have successfully chatted and completed 100 messages no problem.

On prod, however, sometimes after a message response is streaming for just 5-10 seconds, the stream ends (isLoading stops) and the message ends prematurely.

Iā€™m having trouble figuring out how to recreate this to debug it. But it has happened several times. Has anyone else experienced this? It would make my day to figure out how to fix. Thank you!

Author
Account Strength
40%
Account Age
2 months
Verified Email
Yes
Verified Flair
No
Total Karma
10
Link Karma
10
Comment Karma
n/a
Profile updated: 1 day ago
Posts updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 month ago