dtinth / ThreadGPT

Alternative frontend to ChatGPT (gpt-3.5-turbo / gpt-4) with a thread-based interface
https://threadgpt.vercel.app
80 stars 23 forks source link

Add display proper error message #6

Closed GGolfz closed 1 year ago

GGolfz commented 1 year ago

This PR for #2

I have added the logic to display errors based on the type of mutation.error. It can handle both application error (Error) and error from API (APIError)

Application Error Example

image

API Call Error Example

Screenshot 2566-03-10 at 21 50 00 Screenshot 2566-03-10 at 21 50 28

Fixes #2

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
thread-gpt ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 10, 2023 at 2:51PM (UTC)