ChatGPT keeps giving me wrong code snippets

1 points by kaypee901 ↗ HN
I keep getting invalid code examples from ChatGPT

4 comments

[ 2.4 ms ] story [ 21.2 ms ] thread
As in it doesn't run? Maybe give some examples?
You probably can adjust your prompt(s)(?) Even then there is no guarantee. For example for it's own API it generates code for the old version which doesn't work anymore. The latest GPT4 available through API model does the same.
Also: jumping in water makes my clothes wet (just kidding but it’s still not perfect, sometimes the code is nice, other times it’s just a potential starting point)
That means it’s working as intended.