Skip to content

Unexpected behavior when messaging the LLM during streaming #340

@alexc19113800

Description

@alexc19113800

When you interrupt the LLM while it is generating, the extension behaves erratically. The output of the model becomes a part of the user's prompt and the generation spirals out of control. The model starts to continuously generate large amount of text and usually stops after many generations

From a glance it looks like the problem might be multiple streams being triggered and logging to the same conversation simultaneously.

May want to cancel the request when a new prompt comes in?

To recreate:

  1. Enter a "complex" prompt ("Write me a python implementation of Dijstra's algorithm" here)
  2. Interrupt the model during generation ("stop" here)

Image
Image
Image

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