Skip to content

Commit bd8e32a

Browse files
docs: add azure env vars (#814)
1 parent 9bb3c4e commit bd8e32a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ print(completion.model_dump_json(indent=2))
483483

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

486-
- `azure_endpoint`
486+
- `azure_endpoint` (or the `AZURE_OPENAI_ENDPOINT` environment variable)
487487
- `azure_deployment`
488-
- `api_version`
489-
- `azure_ad_token`
488+
- `api_version` (or the `OPENAI_API_VERSION` environment variable)
489+
- `azure_ad_token` (or the `AZURE_OPENAI_AD_TOKEN` environment variable)
490490
- `azure_ad_token_provider`
491491

492492
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).

0 commit comments

Comments
 (0)