How to read an OpenAI-compatible endpoint's response header
I once spent an afternoon proving an endpoint was OpenAI-compatible by reading its headers, and then realised I had proved almost nothing. The headers were correct and the token counts were wrong.