jonrhall / jonrhall/openai-streaming-hooks

Error Handling for when the OpenAI Api fails?

Open
#2 2 comments 0 reactions 1 assignee Claimed by @jonrhall View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
92
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Sometimes when the API fails the response back is something like
`{content: '', role: ''}`

Try catching `submitQuery` doesn't yield any results. Is there a way to catch errors and showcase to the end user?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.