Skip to content

Commit 23db78b

Browse files
Update README.md
1 parent f17f52f commit 23db78b

File tree

1 file changed

+31
-28
lines changed

1 file changed

+31
-28
lines changed

README.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ ChatGPT Output
7474
There are 4 basic steps in order to add a ChatGPT button into Microsoft Word:
7575
1. Enable the Developer Tab
7676
2. Import the VBA script file
77-
3. Add your OpenAI APIKey
78-
4. Create the ChatGPT button
77+
3. Create the ChatGPT button
78+
4. Add your OpenAI APIKey
7979

8080
Each of these steps are fully outlined below.
8181
<br /><br />
@@ -116,32 +116,7 @@ Keep the location of where the file is saved as you will need it later.<br />
116116
**Step 4** - Select the ChatgptTextCompletion.bas file and click Open
117117
<br /><br />
118118

119-
### 4.3 Add your OpenAI APIKey into Windows
120-
121-
**Step 1** - Open the Start menu and start typing "environment variables". When the best match appears click "Edit the system environment variables" result.
122-
123-
<img src=".github/assets/images/add-env-var-step-1.png" width=75% height=75%>
124-
<br />
125-
126-
**Step 2** - Click the "Environment variables" button under the "Advanced" tab.
127-
128-
<img src=".github/assets/images/add-env-var-step-2.png" width=50% height=50%>
129-
<br />
130-
131-
**Step 3** - Create a new user variable by clicking "New" under the "User Variables" section.
132-
133-
<img src=".github/assets/images/add-env-var-step-3.png" width=50% height=50%>
134-
<br />
135-
136-
**Step 4** - Type the variable name **OPENAI_API_KEY** in the first field and your OpenAI APIKEY in the variable value field. Then click OK.
137-
138-
<img src=".github/assets/images/add-env-var-step-4.png" width=50% height=50%>
139-
<br />
140-
141-
**Step 5** - **IMPORTANT** You must restart Windows to apply the new environment variable
142-
<br /><br />
143-
144-
### 4.4 Add your ChatGPT button into the Microsoft Word Ribbon
119+
### 4.3 Add your ChatGPT button into the Microsoft Word Ribbon
145120

146121
**Step 1** - Add a new tab
147122
<br />
@@ -183,6 +158,34 @@ After the preceding steps have been completed the Microsoft Word screen should l
183158
<img src=".github/assets/images/screen-after-chatgpt-button-added.png" width=100% height=100%>
184159
<br />
185160

161+
### 4.4 Add your OpenAI APIKey into Windows
162+
163+
**Step 1** - Open the Start menu and start typing "environment variables". When the best match appears click "Edit the system environment variables" result.
164+
165+
<img src=".github/assets/images/add-env-var-step-1.png" width=75% height=75%>
166+
<br />
167+
168+
**Step 2** - Click the "Environment variables" button under the "Advanced" tab.
169+
170+
<img src=".github/assets/images/add-env-var-step-2.png" width=50% height=50%>
171+
<br />
172+
173+
**Step 3** - Create a new user variable by clicking "New" under the "User Variables" section.
174+
175+
<img src=".github/assets/images/add-env-var-step-3.png" width=50% height=50%>
176+
<br />
177+
178+
**Step 4** - Type the variable name **OPENAI_API_KEY** in the first field and your OpenAI APIKEY in the variable value field. Then click OK.
179+
180+
<img src=".github/assets/images/add-env-var-step-4.png" width=50% height=50%>
181+
<br />
182+
183+
**Step 5** - **IMPORTANT** You must restart Windows to apply the new environment variable
184+
<br /><br />
185+
186+
187+
188+
186189
<!-- Best Practices for API Key Safety -->
187190
## 5. Best Practices for API Key Safety
188191

0 commit comments

Comments
 (0)