Skip to content

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

@r0x07k

Description

@r0x07k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions