Getting started with the GPT-4 API
In this section, we will get started with the GPT-4 API using ChatGPT Plus GPT-4 as a copilot. You will see how a cutting-edge developer can reduce the time to market with GPT-4 as a copilot.
Most of this section was written in the notebook by the author but also with the support of GPT-4. GPT-4’s comments are preceded by GPT-4:, which is a standard ethical procedure.
First, open Getting_Started_with_GPT_4.ipynb
.
This section follows the structure and comments of the notebook. Working at this speed and comfort is an exhilarating experience.
1. GPT-4 helps to explain how to write source code
Give GPT-4 instructions with well-crafted prompts to steer the model.
It will return the source code. This notebook was designed with Python but you can try other languages.
In the top-right corner of the source code frame, click on Copy code:
Figure 17.4: Copy code option
Paste the code in a code cell in your notebook...