Skip to content

Multiple OpenAI thread runs cause error #5

Description

@mbuptivo

If multiple messages are send on a chat, server crashes. This is due to the fact that no more than one run can be in "running" state. If I quickly type:

Hi
How are you?

This causes 2 instances of handleMessage to be called and causes "this.openai.beta.threads.runs.stream" to be called multiple times while the previous run is not completed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions