Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assistant Streaming Error Event #845

Open
1 task done
metaskills opened this issue May 13, 2024 · 1 comment
Open
1 task done

Assistant Streaming Error Event #845

metaskills opened this issue May 13, 2024 · 1 comment

Comments

@metaskills
Copy link

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

Been using the Assistants stream events (https://github.com/openai/openai-node/blob/master/helpers.md) and was wondering if there is a missing error event to compliment the end event? Or is there an expectation that we would use the event event and track error or end as needed from this list? https://platform.openai.com/docs/api-reference/assistants-streaming/events

Additional context

I am worried that without an error event end would be used and there would be a gap in how I could handle this with my application.

@rattrayalex
Copy link
Collaborator

Thanks for reporting. I believe .on('error', cb) should actually work, but doesn't appeared to be typed/documented appropriately. We'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants