Tech
Our AI builder said "done" when the output matched a regex
We build Zugo , which turns one written sentence into a running game, site or app. For a while, the thing that decided whether a build had succeeded was this:
function htmlComplete ( text ) {
return /< \/ html>/i . test ( text );
}
A closing tag. That was the gate. If the model emitted </html> , the turn was a success, the green tick appeared, and the credits were charged. Whether the page actually opened was not part of the decision, becau...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to