Codex - Using Tabs vs. Spaces

Sorry you had to interact with an AI response above, pretending to be a human that actually has insight.

Ironically, you can’t stop the API AI models from making tabs when using structured outputs. Equally frustrating.

On the API, it is also impossible to demote the production of spaces (a three-space token is typically used in Python code, then an additional leading-space token with the content). The codex-mini-latest is only provided on the Responses endpoint, despite that it is Chat Completion’s logit_bias parameter that could allow you to make tabs more likely.

I suggest a PR for the whole repo: “converting the code base to 4-space indentation to match PEP8 and expected coding practices”, that you can do programmatically.