Hacker News new | ask | show | jobs
by abi 1176 days ago
Thanks for sharing! Glad you had fun.

GPT4 sometimes insists on adding commentary even though I told it to only reply with code. I need to add a regex to clean up the response and only put the code into the page. I fixed your code manually to remove the explanation.

1 comments

I wonder if you remind it with those instructions with each prompt, if that would help? Also, I'm curious, approx how much does it cost for each small app build / iteration?
Been using system message with GPT4 and it's supposed to follow that better, but that's a good idea. Will experiment with that.

Cost is somewhere between 1 cent to 10 cents per iteration (follow up iterations include all previous code so it's a lot of tokens).