Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The response rendering freezes midway and throws an error in production mode #72

Open
r0x07k opened this issue Aug 16, 2024 · 1 comment

Comments

@r0x07k
Copy link
Contributor

r0x07k commented Aug 16, 2024

I often observe strange behavior in production mode. The LLM response renders unevenly and eventually freezes midway with an unspecified error. There is nothing in the JS console or stdout. When I switched back to development mode, the issue stopped occurring.

Unfortunately, it's intermittent, and I haven't been able to reliably reproduce it so far.

It seems that the problem lies in the handleSubmitProduction function. I would prefer to use it instead of the one supplied by the useChat hook, but for some reason, it's unstable.

@r0x07k
Copy link
Contributor Author

r0x07k commented Aug 16, 2024

By the way, what is the reason for code duplication in page.tsx and [id]/page.tsx?

@r0x07k r0x07k changed the title Response rendering freezes with error in the middle in production mode The response rendering freezes midway and throws an error in production mode Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant