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

[Bug] Enhance Error Message Clarity in Playground #1143

Closed
mmabrouk opened this issue Jan 3, 2024 · 1 comment · Fixed by #1150
Closed

[Bug] Enhance Error Message Clarity in Playground #1143

mmabrouk opened this issue Jan 3, 2024 · 1 comment · Fixed by #1150
Assignees
Labels

Comments

@mmabrouk
Copy link
Member

mmabrouk commented Jan 3, 2024

Description

Current State:
In the playground, error messages are displayed in a manner similar to normal output, which can be confusing. The current error message format is verbose and does not distinctly separate errors from standard outputs. Here is a screenshot illustrating the current state:

Current State Screenshot

Issues Identified:

  1. Verbosity of Error Messages: The current format provides excessive information which can overwhelm users.
  2. Error Presentation: Errors are displayed as if they are part of normal output, leading to potential misunderstandings.

Proposed Solution

  1. Simplify Error Messages:

    • Modify the display format to focus solely on the critical error information.
    • Current Format: Displays a verbose message with a detailed description.
    • Proposed Format:
      ❌ Error code: 429 - {'error': {'message': 'Request too large for gpt-3.5-turbo in organization org-Jnpah7zGvNYUqsr5TazHFJa4 on tokens_usage_based per min: Limit 80000, Requested 393294. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens_usage_based', 'param': None, 'code': 'rate_limit_exceeded'}}
      
  2. Enhance Error Visibility:

    • Implement a distinct visual design for error messages to clearly differentiate them from normal output.
    • Suggestion: Use a red background for the text area with white text for the error message, ensuring high visibility and clear distinction.
@mmabrouk
Copy link
Member Author

mmabrouk commented Jan 3, 2024

@bekossy forgot to add that the same issue happens in chat and single prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants