epam / ai-dial-adapter-openai

The project implements AI DIAL API for language models from Azure OpenAI
https://epam-rail.com
Apache License 2.0
8 stars 4 forks source link

UX: throw a proper user error in case when attachments aren't correct #108

Closed adubovik closed 2 months ago

adubovik commented 4 months ago

Currently GPT4 Vision and GPT4-O models return Error stage and an empty content field when one of the file attachments isn't of one of the supported types. This confuses the user into assuming that nothing has gone wrong and one could continue sending new messages.

However, it's a genuine error and must be reported as such with 400 error code.