Skip to content

Multiple OpenAI thread runs cause error #5

@mbuptivo

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.

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