TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ChatGPT keeps giving me wrong code snippets

1 pointsby kaypee901over 1 year ago
I keep getting invalid code examples from ChatGPT

4 comments

Quixotica1over 1 year ago
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)
two_in_oneover 1 year ago
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.
dsatttover 1 year ago
That means it’s working as intended.
digitaltreesover 1 year ago
As in it doesn't run? Maybe give some examples?