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.

Tell HN: ChatGPT subtly censored my code in a way that hurt

6 pointsby ji_zaiabout 1 year ago
I asked it to add functionality to a piece of code I was writing.<p>It replaced: &quot;# this is the important line (THIS HAS TO MATCH THE ACTUAL FORMAT OF THE FUCKING FILE COMING IN!)&quot;<p>with: &quot;# Ensure this matches the actual file format&quot;<p>It updated this comment above the area that I had asked it to edit. And I just copied and pasted the entire snippet without checking.<p>Now, I&#x27;ve been using &quot;FUCK&quot; as my search term to quickly jump to this line. It served a damn purpose. It was intentional.<p>This makes me more cautious about copying and pasting code, not because it might not work, but because the code might be altered in subtle ways that aren&#x27;t easily perceivable, that could negatively impact the codebase in the long-run.<p>Of course, a simple base prompt should fix this, but I might not catch this happening in many other cases, or other mediums for that matter.<p>I believe that AI will significantly help us with all forms of creation: code, videos, films, music, etc. Soon, we won&#x27;t be able to imagine creating without it.<p>We&#x27;ll need to prevent it from censoring us in ways that we don&#x27;t want to be censored.

2 comments

taylorfinleyabout 1 year ago
It&#x27;s nice to ask for diffs, then you can see exactly what&#x27;s changing.
bunbun69about 1 year ago
if you don&#x27;t enjoy the censorship in ChatGPT then consider rolling your own LLM