From 5d68d22afac4e0f2c13099a74a3d51b5eba49be1 Mon Sep 17 00:00:00 2001 From: mahajantejas <141305477+mahajantejas@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:06:15 +0530 Subject: [PATCH] Update ChatGPT using OpenAI APIs.md added ending tag "/>" for images to resolve the issue in deployment --- docs/4. Integrations/ChatGPT using OpenAI APIs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/4. Integrations/ChatGPT using OpenAI APIs.md b/docs/4. Integrations/ChatGPT using OpenAI APIs.md index 10105b5dd..ab96aaef9 100644 --- a/docs/4. Integrations/ChatGPT using OpenAI APIs.md +++ b/docs/4. Integrations/ChatGPT using OpenAI APIs.md @@ -10,7 +10,7 @@ _**Leverage the capabilities of GPT models developed by OpenAI by using OpenAI A 3. Make sure there is enough credit in OpenAI account to allow usage. 4. Pricing for API calls is as per OpenAI platform [pricing](https://openai.com/pricing) -Screenshot 2024-02-07 at 10 50 58 AM +Screenshot 2024-02-07 at 10 50 58 AM _Above is a representative image from the OpenAI platform account_ @@ -25,11 +25,11 @@ _Above is a representative image from the OpenAI platform account_ 1. Go to `Settings`, find `OpenAI (ChatGPT) (Beta)` 2. Click on `is active` and paste the OpenAI API key from your OpenAI platform account -Screenshot 2024-02-07 at 10 48 51 AM +Screenshot 2024-02-07 at 10 48 51 AM ## Using the webhook for OpenAI API call in a Glific flow -Screenshot 2024-02-07 at 9 59 24 AM +Screenshot 2024-02-07 at 9 59 24 AM _Representative image to explain the steps in OpenAI API calls in a simple flow_ @@ -39,7 +39,7 @@ _Representative image to explain the steps in OpenAI API calls in a simple flow_ 1. Get the user question 2. In `call a webhook` node, select `function` and paste function name as `parse_via_chat_gpt` - Screenshot 2024-02-07 at 10 52 49 AM + Screenshot 2024-02-07 at 10 52 49 AM 3. Share the following function body ` { @@ -50,7 +50,7 @@ _Representative image to explain the steps in OpenAI API calls in a simple flow_ here `question_text` is the parameter name corresponding to user question. -Screenshot 2024-02-07 at 10 53 21 AM +Screenshot 2024-02-07 at 10 53 21 AM 4. The response from GPT is shown as `@results.webhookresultname.parsed_msg`, in the given example `gpt_response` is the webhook result name.