Moderation tool for formatting code with AI

OpenAI forum is struggling with the volume of users who don’t format their code. One of the community’s Regulars has raised this in the Lounge.

A lot of users don’t know how to use the triple ticks properly, which makes reading code in the forum a pain in the butt.

I was thinking it would be nice if you allowed (trusted) TL-3s to edit user posts explicitly to fix code blocks. But that comes with a rat’s tail of problems that you may not wanna deal with.

However, TL-3s already have the privilege to trigger AI tools in the forum. One would think it wouldn’t be that difficult to implement a button that only TL-3s+ (maybe TL-2+?) had access to, that sends the post to a model that just fixes the backticks, and applies that change.

My suggestion would be to give privileged users a button in the post menu (or maybe in the flag menu?) that gets the post sent to a model for backtick fixing, and perhaps another button that allows the reversion of that change if something went wrong.

Thanks for coming to my ted talk!



Discuss this on our forum.

We could swing something like this with persona triage and a custom tool

Persona triage (gpt 4o mini) → custom tool → llm to fix (gpt 4o) → api to submit edit

The challenge though is how comfortable are we allowing the llm to apply the edit with zero hallucinations?

A possibility could be having the llm to fix call return 2 line numbers (where code starts and where it ends) and then use that information to add backticks, that way there is a lot less risk of destruction.

Will have a further think about this, but I do think something is workable here.



Discuss this on our forum.