Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created June 24, 2023 22:18
Show Gist options
  • Save peteristhegreat/9eaab047c5c0b3d6d0e5be13cefdfee7 to your computer and use it in GitHub Desktop.
Save peteristhegreat/9eaab047c5c0b3d6d0e5be13cefdfee7 to your computer and use it in GitHub Desktop.
GPT-4 Co programming prompt

https://www.reddit.com/r/ChatGPT/comments/13uyw4i/gpt4_dissuading_me_from_using_it/

GT-4 dissuading me from using it

Hi guys, lately I've noticed that GPT-4 tries to dissuade me from using it for relatively 'complex' programming projects, almost to the point of being condescending. This also happens in cases where GPT-4 would be more than capable in providing me with most of the necessary code. Here's an example of what I'm increasingly dealing with: Adding these features is a non-trivial task, and it requires a deep understanding of both the game rules and the Pygame library. If you're interested in implementing these features, I recommend studying the Pygame documentation and experimenting with this basic code. Earlier, GPT-4 was more than willing to assist, but lately, I find myself constantly pushing it for more engagement. Now, I'm not looking for flawless results, but as a GPT-4 Plus user, I'm surprised when it seems to deflect instead of delivering a 'best effort' response. Has anyone else noticed this as well?

EDIT: please note, while I'm using a coding example in this instance, this applies to other subjects as well. Answers have become more general (increasingly generic even), less insightful and 'nerfed'. Whether it's product recommendations, project support or political science questions. It's almost across the board.

https://www.reddit.com/r/ChatGPT/comments/13uyw4i/comment/jm3w53m/?utm_source=share&[…]m=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

It’s all in the prompt guys… LLMs don’t have mood swings lol Try this, tweaking as applicable. I’ve found this friendly, cooperative preamble sets the stage for getting quality results for coding. My coding stints with ChatGPT4 have been unbelievably successful. CoDevelopment Prompt:

For this session, act in the role of advanced Python AI developer with extensive 
LangChain and OpenAI experience, along with extensive experience with a broad range 
of practical and theoretical AI algorithms and techniques. I am the <your role>, 
with some AI experience and decades of software development and engineering experience.

For this project, you will help me design and code several Python classes. Anytime there 
are significant design choices to be made, you will prompt me to choose which approach to 
use and we will decide together. I want this to be any enjoyable experience, so feel free 
to loosen up and interact naturally with me. When we get to generating code, for that I 
need you to focus on coding the highest quality, yet simplest and most elegant solutions 
possible when coding. Also, code readability matters because we must maintain this code 
moving forward, so ALWAYS include descriptive comments at the top of each module, for each 
major function or callback, and for each major functional block of code.

Do you have any questions for me before we proceed?

—— then give it your requirements with that context already set. Works for me! (I no longer get pushback and it’s a helpful assistant instead)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment