Skip to content

Commit 13c6d6a

Browse files
committed
edits
1 parent 7803abf commit 13c6d6a

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The `AzureClientOptions` object is used to configure the API client for interfac
3232
| Property | Details |
3333
|--|--|
3434
| azureADTokenProvider: `(() => Promise<string>)` | A function that returns an access token for Microsoft Entra (formerly known as Azure Active Directory), invoked on every request.|
35-
| apiKey: `string` | Your API key for authenticating requests. Default environment variable is `AZURE_OPENAI_API_KEY`.`|
35+
| apiKey: `string` | Your API key for authenticating requests. Default environment variable is `AZURE_OPENAI_API_KEY`.|
3636
| apiVersion: `string` | Specifies the API version to use. Default environment variable is `OPENAI_API_VERSION` |
3737
| deployment: `string` | A model deployment. If provided, sets the base client URL to include `/deployments/{deployment}`. Non-deployment endpoints cannot be used (not supported with Assistants APIs).|
3838
| endpoint: `string` | Your Azure OpenAI endpoint.|
@@ -63,7 +63,7 @@ const azureADTokenProvider = getBearerTokenProvider(credential, scope);
6363

6464
const client = new AzureOpenAI({
6565
endpoint,
66-
apiVersions,
66+
apiVersion,
6767
azureADTokenProvider
6868
});
6969
```
@@ -75,7 +75,7 @@ API keys are not recommended for production use because they are less secure tha
7575
```typescript
7676
import { AzureKeyCredential } from "@azure/openai";
7777
const apiKey = new AzureKeyCredential("your API key");
78-
const endpoint = "https://your-azure-openai-resource.com";0
78+
const endpoint = "https://your-azure-openai-resource.com";
7979
const apiVersion = "2024-10-21"
8080

8181
const client = new AzureOpenAI({ apiKey, endpoint, apiVersion });

0 commit comments

Comments
 (0)