Skip to content

[Feature] Stop response on client disconnect #35

Description

@b-re-w

Issue

  • chat_with_streaming keeps generating tokens even after the WebSocket client disconnects. The loop never checks connection state or handles WebSocketDisconnect, so the model continues streaming in the background, wasting resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions