Skip to content

Commit a61972d

Browse files
committed
edit
1 parent 73d619d commit a61972d

File tree

1 file changed

+1
-3
lines changed
  • articles/ai-services/openai/includes/language-overview

1 file changed

+1
-3
lines changed

articles/ai-services/openai/includes/language-overview/javascript.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ const client = new AzureOpenAI({
8585

8686
# [API Key](#tab/api-key)
8787

88-
API Key
89-
9088
API keys are not recommended for production use because they are less secure than other authentication methods.
9189

9290
```typescript
@@ -98,7 +96,7 @@ const apiVersion = "2024-10-21"
9896
const client = new AzureOpenAI({ apiKey, endpoint, apiVersion });
9997
```
10098

101-
`AzureOpenAI` can be authenticated with an API key by setting the `AZURE_OPENAI_API_KEY` environment variable or by setting the `apiKey` string property in the options object when creating the `AzureOpenAI` client.
99+
`AzureOpenAI` can be authenticated with an API key by setting the `AZURE_OPENAI_API_KEY` environment variable or by setting the `apiKey` string property in the [`AzureClientOptions`](#configuration) object when creating the `AzureOpenAI` client.
102100

103101
[!INCLUDE [Azure key vault](~/reusable-content/ce-skilling/azure/includes/ai-services/security/azure-key-vault.md)]
104102

0 commit comments

Comments
 (0)