Skip to content

Commit f9a0459

Browse files
authored
GPT Actions - Fixing images link - Images can't have subdirectory (#1384)
1 parent 874959b commit f9a0459

21 files changed

+17
-17
lines changed

examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@
567567
"\n",
568568
"You now have deployed a GPT that uses a middleware in AWS, in an authenticated manner, that's able to connect to Redsfhit. Users with access (that are in Cognito) can now query your databases to perform data analysis task:\n",
569569
"\n",
570-
"![../../../images/chatgpt/redshift_gpt.png](../../../images/chatgpt/redshift_gpt.png)\n"
570+
"![../../../images/redshift_gpt.png](../../../images/redshift_gpt.png)\n"
571571
]
572572
}
573573
],

examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
"metadata": {},
305305
"source": [
306306
"\n",
307-
"![../../../images/chatgpt/snowflake_direct_oauth.png](../../../images/chatgpt/snowflake_direct_oauth.png)"
307+
"![../../../images/snowflake_direct_oauth.png](../../../images/snowflake_direct_oauth.png)"
308308
]
309309
},
310310
{

examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"\n",
204204
"Once you have this deployed, you can go check out the application on AWS Lambda:\n",
205205
"\n",
206-
"![../../../images/chatgpt/aws_lambda_1.png](../../../images/chatgpt/aws_lambda_1.png)\n",
206+
"![../../../images/aws_lambda_1.png](../../../images/aws_lambda_1.png)\n",
207207
"\n",
208208
"You can confirm that the function is not reachable unless authenticated by running a curl command without any authentication:\n",
209209
"\n",
@@ -239,35 +239,35 @@
239239
"\n",
240240
"Let's now make sure we create a webpage/domain on which we can log-in. Go to AWS Cognito, select the newly created user pool & go to App Integration tab:\n",
241241
"\n",
242-
"![../../../images/chatgpt/aws_lambda_3.png](../../../images/chatgpt/aws_lambda_3.png)\n",
242+
"![../../../images/aws_lambda_3.png](../../../images/aws_lambda_3.png)\n",
243243
"\n",
244244
"Create a Cognito Domain by clicking on \"Domains\" then \"Create Cognito Domain\"\n",
245245
"\n",
246-
"![../../../images/chatgpt/aws_lambda_8.png](../../../images/chatgpt/aws_lambda_8.png)\n",
246+
"![../../../images/aws_lambda_8.png](../../../images/aws_lambda_8.png)\n",
247247
"\n",
248248
"Scroll down to `App client list` on the App Integration page of your User Pool:\n",
249249
"\n",
250-
"![../../../images/chatgpt/aws_lambda_9.png](../../../images/chatgpt/aws_lambda_9.png)\n",
250+
"![../../../images/aws_lambda_9.png](../../../images/aws_lambda_9.png)\n",
251251
"\n",
252252
"Select your app client and edit the Hosted UI:\n",
253253
"\n",
254-
"![../../../images/chatgpt/aws_lambda_10.png](../../../images/chatgpt/aws_lambda_10.png)\n",
254+
"![../../../images/aws_lambda_10.png](../../../images/aws_lambda_10.png)\n",
255255
"\n",
256256
"And add a callback URL, Authorization Scheme and OAuth scope:\n",
257257
"\n",
258-
"![../../../images/chatgpt/aws_lambda_11.png](../../../images/chatgpt/aws_lambda_11.png)\n",
258+
"![../../../images/aws_lambda_11.png](../../../images/aws_lambda_11.png)\n",
259259
"\n",
260260
"_Note that you'll come back to this step when ChatGPT will generate a callback URL for the authentication of your action. The postman URL, should be used only for development purpose._\n",
261261
"\n",
262262
"You can try this connection in Postman, under Authorization for your `<api_url>`, copy/paste the value from AWS for the client_id, client_secret and the URL you set up for the auth domain, make sure to add `openid` in the scope to get a valid access_token:\n",
263263
"\n",
264-
"![../../../images/chatgpt/aws_lambda_12.png](../../../images/chatgpt/aws_lambda_12.png)\n",
264+
"![../../../images/aws_lambda_12.png](../../../images/aws_lambda_12.png)\n",
265265
"\n",
266-
"![../../../images/chatgpt/aws_lambda_13.png](../../../images/chatgpt/aws_lambda_13.png)\n",
266+
"![../../../images/aws_lambda_13.png](../../../images/aws_lambda_13.png)\n",
267267
"\n",
268268
"If you're now doing the request on Postman, using the access_token you just retrieve, you'll get a success JSON returned:\n",
269269
"\n",
270-
"![../../../images/chatgpt/aws_lambda_14.png](../../../images/chatgpt/aws_lambda_14.png)"
270+
"![../../../images/aws_lambda_14.png](../../../images/aws_lambda_14.png)"
271271
]
272272
},
273273
{
@@ -320,13 +320,13 @@
320320
"Click on Authentication > OAuth.\n",
321321
"We'll now need to fetch AWS Cognito's variables. Let's go on your User Pool > User Pool App Client. From there you can retrieve your client ID and client Secret.\n",
322322
"\n",
323-
"![../../../images/chatgpt/aws_lambda_15.png](../../../images/chatgpt/aws_lambda_15.png)\n",
323+
"![../../../images/aws_lambda_15.png](../../../images/aws_lambda_15.png)\n",
324324
"\n",
325325
"Copy paste those values in ChatGPT. Now let's add the Token URLs.\n",
326326
"\n",
327327
"From your User Pool you'll find the URL you've previously created for the hosted domain.\n",
328328
"\n",
329-
"![../../../images/chatgpt/aws_lambda_16.png](../../../images/chatgpt/aws_lambda_16.png)\n",
329+
"![../../../images/aws_lambda_16.png](../../../images/aws_lambda_16.png)\n",
330330
"\n",
331331
"We'll take this URL and append [AWS routes for OAuth](https://docs.aws.amazon.com/cognito/latest/developerguide/federation-endpoints.html).\n",
332332
"\n",
@@ -351,11 +351,11 @@
351351
"source": [
352352
"Now go back on your GPT (moving out of the action subview), and you'll see a callback URL provided by ChatGPT for the Authentication:\n",
353353
"\n",
354-
"![../../../images/chatgpt/aws_lambda_17.png](../../../images/chatgpt/aws_lambda_17.png)\n",
354+
"![../../../images/aws_lambda_17.png](../../../images/aws_lambda_17.png)\n",
355355
"\n",
356356
"Get this URL and edit the hosted UI of your User Pool App client & save the changes:\n",
357357
"\n",
358-
"![../../../images/chatgpt/aws_lambda_18.png](../../../images/chatgpt/aws_lambda_18.png)"
358+
"![../../../images/aws_lambda_18.png](../../../images/aws_lambda_18.png)"
359359
]
360360
},
361361
{
@@ -371,13 +371,13 @@
371371
"source": [
372372
"You can now test this action again:\n",
373373
"\n",
374-
"![../../../images/chatgpt/aws_lambda_19.png](../../../images/chatgpt/aws_lambda_19.png)\n",
374+
"![../../../images/aws_lambda_19.png](../../../images/aws_lambda_19.png)\n",
375375
"\n",
376376
"You will be redirected to AWS Cognito page, which you can log-in in using the credentials previously set-up.\n",
377377
"\n",
378378
"If you now ask the GPT to run the same action, it will answer correctly as you're now authenticated and able to run this function!\n",
379379
"\n",
380-
"![../../../images/chatgpt/aws_lambda_20.png](../../../images/chatgpt/aws_lambda_20.png)"
380+
"![../../../images/aws_lambda_20.png](../../../images/aws_lambda_20.png)"
381381
]
382382
},
383383
{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)