4 ms·
Did you try using the API and providing a very clear system message followed by several examples that were pure JSON?
by rytill 3y ago
Did you try using the API and providing a very clear system message followed by several examples that were pure JSON?
- bradly 3y agoYep. I even gave it a JSON schema file to use. It just wouldn't stop added extra verbage.
- NicoJuicy 3y agoSay it's a json API and may only reply with valid json without explanation.
- bradly 3y agoLol yes of course I tried that.
- dror 3y agoI've had good luck with both: https://github.com/drorm/gish/blob/main/tasks/coding.txt https://github.com/drorm/gish/blob/main/tasks/coding.txt and https://github.com/drorm/gish/blob/main/tasks/webapp.txt https://github.com/drorm/gish/blob/main/tasks/webapp.txt With the second one, I reliably generated half a dozen apps with one command. Not to say that it won't fail sometimes.
- NicoJuicy 3y agoCombine both ? :)
- taylorfinley 3y agoI just use a regex to select everything between the first and last curly bracket, reliable fixes the “sure, here’s your object” problem.