Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bee4dcd

Browse files
added OpenAI Example
1 parent 0790562 commit bee4dcd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎openAI.ipynb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"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",
1313
"\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"
1515
]
1616
},
1717
{
@@ -31,20 +31,19 @@
3131
"source": [
3232
"## Send a question to the OpenAI REST Endpoint\n",
3333
"\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",
3635
"\n",
3736
"![A picture of the Keys and Endpoints section of the OpenAI Service](attachment:keysEndpoints.png)\n",
3837
"\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",
4039
"\n",
4140
"![A picture of Azure AI Studio's Chat Playground and clicking the View Code button](attachment:chatPlayground.png)\n",
4241
"\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",
4443
"\n",
4544
"![A picture of the sample code modal box and where to copy the endpointURL and key](attachment:sampleCode.png)\n",
4645
"\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",
4847
"\n",
4948
"*(As a reminder, ensure you replace the URL and the api-key with the ones from your account)*"
5049
]
@@ -133,7 +132,7 @@
133132
"cell_type": "markdown",
134133
"metadata": {},
135134
"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",
137136
"\n",
138137
"*(As a reminder, ensure you replace the URL and the api-key with the ones from your account)*"
139138
]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /