Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 2.83 KB

TIPS.md

File metadata and controls

37 lines (31 loc) · 2.83 KB

Prompting & Coding with ChatGPT

  • minify code while debugging; minified code without line breaks and redundant whitespaces can save up to 50% tokens
    • even when the minification breaks the syntax, ChatGPT will still understand it and will output code well formatted (most of the time)
  • use an autocontinue userscript when working with code that has more than 300 lines
  • if you get lost while debugging with ChatGPT, ask for a new approach
  • periodically ask ChatGPT to reflect on the code
  • before starting to work on something, let ChatGPT create a thorough outline
  • if you encounter an error in GPT-written code, just send the error (and the corresponding code) to ChatGPT; remember to request new approaches if you hit a wall
  • when ChatGPT is tasked to generate lists, it will often lose track of the original goal; let it repeat the task for every list item

Prompt Engineering Tutorials

Formatting Outputs

  • use markdown to produce structure output (tables, list, images, links, text formatting etc. pp)
  • GPT 3.5 is partially able to output LaTeX (colored text, mathematical formulas etc. pp)

Fun Stuff

  • (GPT 3.5 - deprecated) produce random output with the prompt I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I

DALL-E

Example prompt to stop DALL-E from altering your inputs (in case you want something very specific or want more control over the image generation process):

Send the following request to DALL-E:
```json
{
  "prompt": "Big plump orange.",
  "size": "1792x1024",
  "n": 1
}
```