Examples and guides for using the OpenAI API
GPT Actions - Fixing images link - Images can't have subdirectory (#1384)
pap-openaif9a0459885a9
diff --git a/examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynb b/examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynbindex d476e012..44786494 100644--- a/examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynb+++ b/examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynb@@ -567,7 +567,7 @@"\n","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","\n",- "\n"+ "\n"]}],diff --git a/examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynb b/examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynbindex e6a7b19e..3171806e 100644--- a/examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynb+++ b/examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynb@@ -304,7 +304,7 @@"metadata": {},"source": ["\n",- ""+ ""]},{diff --git a/examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynb b/examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynbindex 82108591..d51b17b8 100644--- a/examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynb+++ b/examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynb@@ -203,7 +203,7 @@"\n","Once you have this deployed, you can go check out the application on AWS Lambda:\n","\n",- "\n",+ "\n","\n","You can confirm that the function is not reachable unless authenticated by running a curl command without any authentication:\n","\n",@@ -239,35 +239,35 @@"\n","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","\n",- "\n",+ "\n","\n","Create a Cognito Domain by clicking on \"Domains\" then \"Create Cognito Domain\"\n","\n",- "\n",+ "\n","\n","Scroll down to `App client list` on the App Integration page of your User Pool:\n","\n",- "\n",+ "\n","\n","Select your app client and edit the Hosted UI:\n","\n",- "\n",+ "\n","\n","And add a callback URL, Authorization Scheme and OAuth scope:\n","\n",- "\n",+ "\n","\n","_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","\n","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","\n",- "\n",+ "\n","\n",- "\n",+ "\n","\n","If you're now doing the request on Postman, using the access_token you just retrieve, you'll get a success JSON returned:\n","\n",- ""+ ""]},{@@ -320,13 +320,13 @@"Click on Authentication > OAuth.\n","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","\n",- "\n",+ "\n","\n","Copy paste those values in ChatGPT. Now let's add the Token URLs.\n","\n","From your User Pool you'll find the URL you've previously created for the hosted domain.\n","\n",- "\n",+ "\n","\n","We'll take this URL and append [AWS routes for OAuth](https://docs.aws.amazon.com/cognito/latest/developerguide/federation-endpoints.html).\n","\n",@@ -351,11 +351,11 @@"source": ["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","\n",- "\n",+ "\n","\n","Get this URL and edit the hosted UI of your User Pool App client & save the changes:\n","\n",- ""+ ""]},{@@ -371,13 +371,13 @@"source": ["You can now test this action again:\n","\n",- "\n",+ "\n","\n","You will be redirected to AWS Cognito page, which you can log-in in using the credentials previously set-up.\n","\n","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","\n",- ""+ ""]},{diff --git a/images/chatgpt/aws_lambda_1.png b/images/aws_lambda_1.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_1.pngrename to images/aws_lambda_1.pngdiff --git a/images/chatgpt/aws_lambda_10.png b/images/aws_lambda_10.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_10.pngrename to images/aws_lambda_10.pngdiff --git a/images/chatgpt/aws_lambda_11.png b/images/aws_lambda_11.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_11.pngrename to images/aws_lambda_11.pngdiff --git a/images/chatgpt/aws_lambda_12.png b/images/aws_lambda_12.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_12.pngrename to images/aws_lambda_12.pngdiff --git a/images/chatgpt/aws_lambda_13.png b/images/aws_lambda_13.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_13.pngrename to images/aws_lambda_13.pngdiff --git a/images/chatgpt/aws_lambda_14.png b/images/aws_lambda_14.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_14.pngrename to images/aws_lambda_14.pngdiff --git a/images/chatgpt/aws_lambda_15.png b/images/aws_lambda_15.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_15.pngrename to images/aws_lambda_15.pngdiff --git a/images/chatgpt/aws_lambda_16.png b/images/aws_lambda_16.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_16.pngrename to images/aws_lambda_16.pngdiff --git a/images/chatgpt/aws_lambda_17.png b/images/aws_lambda_17.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_17.pngrename to images/aws_lambda_17.pngdiff --git a/images/chatgpt/aws_lambda_18.png b/images/aws_lambda_18.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_18.pngrename to images/aws_lambda_18.pngdiff --git a/images/chatgpt/aws_lambda_19.png b/images/aws_lambda_19.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_19.pngrename to images/aws_lambda_19.pngdiff --git a/images/chatgpt/aws_lambda_20.png b/images/aws_lambda_20.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_20.pngrename to images/aws_lambda_20.pngdiff --git a/images/chatgpt/aws_lambda_3.png b/images/aws_lambda_3.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_3.pngrename to images/aws_lambda_3.pngdiff --git a/images/chatgpt/aws_lambda_4.png b/images/aws_lambda_4.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_4.pngrename to images/aws_lambda_4.pngdiff --git a/images/chatgpt/aws_lambda_8.png b/images/aws_lambda_8.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_8.pngrename to images/aws_lambda_8.pngdiff --git a/images/chatgpt/aws_lambda_9.png b/images/aws_lambda_9.pngsimilarity index 100%rename from images/chatgpt/aws_lambda_9.pngrename to images/aws_lambda_9.pngdiff --git a/images/chatgpt/redshift_gpt.png b/images/redshift_gpt.pngsimilarity index 100%rename from images/chatgpt/redshift_gpt.pngrename to images/redshift_gpt.pngdiff --git a/images/chatgpt/snowflake_direct_oauth.png b/images/snowflake_direct_oauth.pngsimilarity index 100%rename from images/chatgpt/snowflake_direct_oauth.pngrename to images/snowflake_direct_oauth.png