Skip to content

Commit f9f9592

Browse files
authored
Revise section numbering
1 parent d2b1aeb commit f9f9592

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/azure-functions/functions-add-openai-text-completion.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This article shows you how to use Visual Studio Code to connect Azure OpenAI to
2222
> * Enable your function app to connect to OpenAI.
2323
> * Add OpenAI bindings to your HTTP triggered function.
2424
25-
## 0. Prerequisites
25+
## 1. Check prerequisites
2626
:::zone pivot="programming-language-csharp"
2727
* Complete the steps in [part 1 of the Visual Studio Code quickstart](create-first-function-vs-code-csharp.md).
2828
:::zone-end
@@ -47,7 +47,7 @@ This article shows you how to use Visual Studio Code to connect Azure OpenAI to
4747
:::zone-end
4848
* The [Azurite storage emulator](../storage/common/storage-use-azurite.md?tabs=npm#install-azurite). While you can also use an actual Azure Storage account, the article assumes you're using this emulator.
4949

50-
## 1. Create your Azure OpenAI resources
50+
## 2. Create your Azure OpenAI resources
5151

5252
The following steps show how to create an Azure OpenAI data model in the Azure portal.
5353

@@ -75,7 +75,7 @@ The following steps show how to create an Azure OpenAI data model in the Azure p
7575

7676
The Azure portal displays a notification when the new resource is available.
7777

78-
## 2. Deploy a model
78+
## 3. Deploy a model
7979

8080
Now you can deploy a model. You can select from one of several available models in Azure OpenAI Studio.
8181

@@ -105,7 +105,7 @@ To deploy a model, follow these steps:
105105

106106
Now that you have the credentials to connect to your model in Azure OpenAI, you need to set these access credentials in application settings.
107107

108-
## 3. Update application settings
108+
## 4. Update application settings
109109

110110
1. In Visual Studio Code, open the code project you created when you completed the [previous article](./create-first-function-vs-code-csharp.md), open the local.settings.json file in the project root folder, and update the `AzureWebJobsStorage` setting to `UseDevelopmentStorage=true`. You can skip this step if the `AzureWebJobsStorage` setting in *local.settings.json* is set to the connection string for an existing Azure Storage account instead of `UseDevelopmentStorage=true`.
111111

@@ -118,7 +118,7 @@ Now that you have the credentials to connect to your model in Azure OpenAI, you
118118
1. Save the file. When you deploy to Azure, you must also add these settings to your function app.
119119

120120
:::zone pivot="programming-language-csharp"
121-
## 4. Register binding extensions
121+
## 5. Register binding extensions
122122

123123
Because you're using an Azure OpenAI output binding, you must have the corresponding bindings extension installed before you run the project.
124124

@@ -130,7 +130,7 @@ dotnet add package Microsoft.Azure.Functions.Worker.Extensions.OpenAI --prerelea
130130
:::zone-end
131131
:::zone pivot="programming-language-java,programming-language-javascript,programming-language-typescript,programming-language-python,programming-language-powershell"
132132
<!---NOTE: Update this after preview to `## Verify the extension bundle`-->
133-
## 4. Update the extension bundle
133+
## 5. Update the extension bundle
134134

135135
To access the preview Azure OpenAI bindings, you must use a preview version of the extension bundle that contains this extension.
136136

@@ -148,7 +148,7 @@ Replace the contents of your current `host.json` file with this JSON:
148148
:::zone-end
149149
Now, you can use the Azure OpenAI output binding to your project.
150150

151-
## 5. Return text completion from the model
151+
## 6. Return text completion from the model
152152

153153
The code you add creates a `whois` HTTP function endpoint in your existing project. In this function, data passed in a URL `name` parameter of a GET request is used to dynamically create a completion prompt. This dynamic prompt is bound to a text completion input binding, which returns a response from the model based on the prompt. The completion from the model is returned in the HTTP response.
154154
:::zone pivot="programming-language-csharp"
@@ -250,7 +250,7 @@ The code you add creates a `whois` HTTP function endpoint in your existing proje
250250

251251
:::zone-end
252252

253-
## 6. Run the function
253+
## 7. Run the function
254254

255255
1. In a Terminal window, run the following command to start the Azurite storage emulator in a separate process:
256256

@@ -278,7 +278,7 @@ The code you add creates a `whois` HTTP function endpoint in your existing proje
278278
## 9. Deploy to Azure
279279
-->
280280

281-
## 7. Clean up resources
281+
## 8. Clean up resources
282282

283283
In Azure, *resources* refer to function apps, functions, storage accounts, and so forth. They're grouped into *resource groups*, and you can delete everything in a group by deleting the group.
284284

0 commit comments

Comments
 (0)