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: don't allow the user to attach images for requests to models that don't support images #3202

Open jegraham-amplify opened 3 months ago

jegraham-amplify commented 3 months ago

What features would you like to see added?

If a model doesn't support vision, don't let the user try to send an image to that model.

More details

Currently, there is no indication that only certain models support vision. Additionally, the error message returned is generic and does not tell the user why their request failed. This results in a frustrating user experience.

Which components are impacted by your request?

UI, Endpoints

Pictures

No response

Code of Conduct

danny-avila commented 3 months ago

This involves a bit of maintenance on what models support vision, etc. In my experience, it's always best to let the admin decide and there are already some planned updates for this as well as configuring some other model-specific details.

I'll keep the UI elements in mind for this.