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

Send 400 / 500 error status on Internal Server Error #1051

Open
ElishaKay opened this issue Dec 29, 2024 · 1 comment
Open

Send 400 / 500 error status on Internal Server Error #1051

ElishaKay opened this issue Dec 29, 2024 · 1 comment

Comments

@ElishaKay
Copy link
Collaborator

ElishaKay commented Dec 29, 2024

We've gotta bubble up the error from the server when there is an "internal server error" - probably need a try/catch on the main API Request handler and throw an error on the chat_completion helper function

It's a gorgeous gradient, but the user is left poetically waiting with no indication on a server error

Screenshot 2024-12-29 at 21 03 56

Perhaps in the create_chat_completion function:

https://docs.gptr.dev/docs/gpt-researcher/llms/testing-your-llm

@assafelovic
Copy link
Owner

@ElishaKay good point, let's do a PR for 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