danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.86k stars 2.96k forks source link

Enhancement: tell the user why their request failed #3200

Closed jegraham-amplify closed 3 months ago

jegraham-amplify commented 3 months ago

What features would you like to see added?

UI errors are non-specific and vague. From these messages alone, the user is entirely unable to determine what went wrong and whether it's an issue with the site/server or an issue with their request. When the user has done something incorrect to cause the error, they should be informed.

More details

Example scenario: uploading an image to a model that doesn't support it

Error shown on the UI: Something went wrong. Here's the specific error message we encountered: An error occurred while processing your request. Please contact the Admin.

Error logged by the server: error: [handleAbortError] AI response error; aborting request: 400 Invalid content type. image_url is only supported by certain models.

Suggested fix: Display more relevant error information to the user

Which components are impacted by your request?

UI

Pictures

No response

Code of Conduct