Re:Show HN: Superfunctions – AI prompt templates as an API
by trentearl on Sunday August 20, 2023 @06:03PM
(#37203337)
Originally I planned to include output validation using zod but I scrapped it in favor of simplicity. I never considered regex validation that would be much simpler.
I'm open to adding validation if it adds value. Thanks for your feedback!
I get the need for an MVP, but even a basic "Provide a regex and the max number of times to retry" would make this infinitely more useful.
That also lets you expand the concept down the line, like surfacing how a prompt change lead to increased retries.