Skip to content

Messages leak to other users #479

Closed as not planned
Closed as not planned
@Tetr4

Description

@Tetr4

When two users make a request for the streaming endpoint at the same time, user A's stream will contain chat engine events from user B's stream. This leaks user B's message to user A, if the events contain the message as a context query:

{
    "type": "events",
    "data": {
        "title": "Retrieving context for query: 'Show me articles related to machine learning.\n'"
    }
}

A workaround is to remove the event_handler from VercelStreamResponse. Ideally these chat engine events should only be emitted to the request that triggered them, but i am not sure if that is possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions