|
11 | 11 | "\n",
|
12 | 12 | "Before you can run this example, ensure you have an OpenAI service in Azure and a model deployment. If you need help, follow the quickstart guide here: [Quickstart: Get started using GPT-35-Turbo and GPT-4 with Azure OpenAI Service](https://learn.microsoft.com/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line&pivots=programming-language-studio)\n",
|
13 | 13 | "\n",
|
14 | | - "The following samples assume that there is an OpenAI service deployed at `https://skynetbeta.openai.azure.com/` and a gpt-35-turbo deployment named `chattykathy`. To have the samples working in your environment, make sure adjust URL and deployment name so that they will match your account.\n" |
| 14 | + "The following samples assume that there is an OpenAI service deployed at `https://skynetbeta.openai.azure.com/` and a gpt-35-turbo deployment named `chattykathy`. To have the samples working in your environment, make sure to replace the URL and deployment name so that they will match your account.\n" |
15 | 15 | ]
|
16 | 16 | },
|
17 | 17 | {
|
|
31 | 31 | "source": [
|
32 | 32 | "## Send a question to the OpenAI REST Endpoint\n",
|
33 | 33 | "\n",
|
34 | | - "In this first example, we will send a question to the OpenAI REST endpoint and get a response. The question we will send via a REST call is \"Why is the sky blue\". The call to the stored proceduere will pass api-key in the header for authentication. This key can be found under Keys and Endpoint\n", |
35 | | - "on the OpenAI service page.\n", |
| 34 | + "In this first example, we will send a question to the OpenAI REST endpoint and get a response. The question we will send via a REST call is \"Why is the sky blue\". The call to the stored proceduere will pass *api-key* in the header for authentication. This key can be found under **Keys and Endpoint** on the OpenAI service page.\n", |
36 | 35 | "\n",
|
37 | 36 | "\n",
|
38 | 37 | "\n",
|
39 | | - "To find the URL of the REST service, you can use Azure AI Studio's Chat Playground. Click the View Code button\n", |
| 38 | + "To find the URL of the REST service, you can use **Azure AI Studio's Chat Playground**. Click the View Code button\n", |
40 | 39 | "\n",
|
41 | 40 | "\n",
|
42 | 41 | "\n",
|
43 | | - "And copy the Endpoint URL. You can also copy the key here as well.\n", |
| 42 | + "and copy the Endpoint URL. You can also copy the key here as well.\n", |
44 | 43 | "\n",
|
45 | 44 | "\n",
|
46 | 45 | "\n",
|
47 | | - "The call to External REST Endpoint Invocation via the Azure SQL Database will be as follows:\n", |
| 46 | + "The code to use External REST Endpoint Invocation via the Azure SQL Database to call the OpenAI REST endpoint will be as follows:\n", |
48 | 47 | "\n",
|
49 | 48 | "*(As a reminder, ensure you replace the URL and the api-key with the ones from your account)*"
|
50 | 49 | ]
|
|
133 | 132 | "cell_type": "markdown",
|
134 | 133 | "metadata": {},
|
135 | 134 | "source": [
|
136 | | - "If you have the adventureworks demo data in your database, you can use date from the Products table and send in the prompt to ChatGPT. The following example will ask OpenAI to create add copy based on a product and product description:\n", |
| 135 | + "If you have the adventureworks demo data in your database, you can use date from the Products table with ChatGPT prompt questions. The following example will ask OpenAI to create ad copy based on a product and product description:\n", |
137 | 136 | "\n",
|
138 | 137 | "*(As a reminder, ensure you replace the URL and the api-key with the ones from your account)*"
|
139 | 138 | ]
|
|
0 commit comments