Hey all,
So here is my conclusion from my overall research. I may be wrong as well :)
Recently (maybe a few days back), Microsoft pushed a new feature to validate all the openai api request headers.
- If the request header is more than 8 (>8) it will start throwing this error. So the threshold is 8. If you provide even one more (i.e 9 ) it will be the 400 bad requests.
{ "error"``: {`` "code"``: ``"TooManyHeaders"``,`` "message"``: ``"Your request contains too many headers. Please remove some headers and try again." } }
But this push is not released to all models and regions. So this behaviour can be experienced by differently on different endpoints
So far I can easily reproduce this issue in the below API and region
gpt-4 version 0613, eastus2
Feel free to correct me or provide your own feedback and responses
-Jay