text-embeddings-inference
text-embeddings-inference copied to clipboard
Better HTTP Status Code for Empty Requests
System Info
(I don't think it's necessary)
Information
- [X] Docker
- [ ] The CLI directly
Tasks
- [X] An officially supported command
- [ ] My own modifications
Reproduction
Expected behavior
HTTP status 400 is more appropriate IMHO. The 413 status code might lead to misinterpretation. For example, when integrated with Dify, dify translates the 413 to Payload too large, but there is not payload to begin with.