Arghya721 / chat-with-llms

Chat-with-LLMs is your one-stop destination to try out and compare the latest large language models from leading AI providers.
https://chat-with-llms.com
2 stars 1 forks source link

Improper Error Handling for Exceeded Credit Limit #3

Open Arghya721 opened 1 month ago

Arghya721 commented 1 month ago

Description:

When the credit limit for an AI model is exceeded, the server currently returns an error message that does not provide a clear indication of the problem. This makes it difficult for users to understand the reason for the error and take appropriate action.

Expected Behavior:

The server should handle the exceeded credit limit scenario gracefully and return a proper response code in the response. For instance, it could return an HTTP 402 or HTTP 500 error. A retry button will be triggered on the front-end UI for this.

Steps to Reproduce

  1. Log into the website using a Google account. It will redirect to the chat section on successful authentication.
  2. Use an AI model (e.g., GPT-4) on the platform.
  3. Exhaust the allocated credit limit for the model.
  4. Attempt to make another request using the model

Video link of the issue: https://github.com/user-attachments/assets/40dc5624-b0c0-46a8-8643-e071a16601c4

Website link : https://chat-with-llms.com