Skip to content

Commit

Permalink
docs: add azure env vars (openai#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and megamanics committed Aug 14, 2024
1 parent ac1a9c9 commit fb4fa36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,10 @@ print(completion.model_dump_json(indent=2))

In addition to the options provided in the base `OpenAI` client, the following options are provided:

- `azure_endpoint`
- `azure_endpoint` (or the `AZURE_OPENAI_ENDPOINT` environment variable)
- `azure_deployment`
- `api_version`
- `azure_ad_token`
- `api_version` (or the `OPENAI_API_VERSION` environment variable)
- `azure_ad_token` (or the `AZURE_OPENAI_AD_TOKEN` environment variable)
- `azure_ad_token_provider`

An example of using the client with Azure Active Directory can be found [here](https://github.com/openai/openai-python/blob/main/examples/azure_ad.py).
Expand Down

0 comments on commit fb4fa36

Please sign in to comment.