I tried to enable LMFE_STRICT_JSON_FIELD_ORDER = true in the env vars in Runpod but it still allows the LLM to output json in whatever order it wants (such as outputting the actual response first and the reasoning behind it second).
Outlines is also supposed to enforce order, but doesn't in practice.
https://github.com/noamgat/lm-format-enforcer?tab=readme-ov-file#configuration-options