Hacker News new | ask | show | jobs
by EgeAytin 1226 days ago
interesting, any thoughts on how can it be helpful on code-related queries? In particular, I'm using chatgtp to get code patterns/examples and I would choose to ask directly from cli but I prefer to get more organized response instead of getting plain text for code examples.
1 comments

If you look at the pretexts for coder or sam, you can actually force a response format from ChatGPT. You can get it to "respond to the following with a code block, followed by a explanation, using markdown format" This should work for both the CLI and the webapp. You can prime ChatGPT to respond a lot of different ways and with personalities.

Codex, or the CodeMode in my CLI, doesn't always work as well, often it continues to write more, unrelated code from the query.

Also, the CLI is not moderated the same way the webapps are. It will answer questions it would not otherwise. The jailbreaks go even further in unlocking prompts it will answer and reponse content it will generate.