EpistasisLab / KRAGEN

Software to implement GoT with a weviate vectorized database
MIT License
559 stars 33 forks source link

Add user-friendly responses on the GUI #54

Open jay-m-dev opened 3 months ago

jay-m-dev commented 3 months ago

User-friendly errors should be shown to the user on the GUI.

Here's one example: using an OpenAI key with an insufficient quota gives this error on the ExecGPT backend: exception: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

The Answer on the GUI is empty.

One suggestion would be to display user-friendly errors in a pop-up alert (or something similar).

HyunjunA commented 2 months ago

image

exception: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

With the exception noted above, the graph appears as shown in this image.