Skip to content

Commit

Permalink
fix typo in doc strings: AZURE_OPENAI_ENDPOINT --> AZURE_OPENAI_API_E…
Browse files Browse the repository at this point in the history
…NDPOINT
  • Loading branch information
fjxmlzn committed Jan 11, 2025
1 parent f38c930 commit 3cd4080
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/text/openreview_openai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
case the Azure CLI will be used to authenticate the requests, and the environment variable AZURE_OPENAI_API_SCOPE
needs to be set. See Azure OpenAI authentication documentation for more information:
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints#microsoft-entra-id-authentication
* AZURE_OPENAI_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_VERSION: Azure OpenAI API version. You can get it from https://portal.azure.com/.
These environment variables can be set in a .env file in the same directory as this script. For example:
Expand Down
2 changes: 1 addition & 1 deletion example/text/pubmed_openai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
case the Azure CLI will be used to authenticate the requests, and the environment variable AZURE_OPENAI_API_SCOPE
needs to be set. See Azure OpenAI authentication documentation for more information:
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints#microsoft-entra-id-authentication
* AZURE_OPENAI_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_VERSION: Azure OpenAI API version. You can get it from https://portal.azure.com/.
These environment variables can be set in a .env file in the same directory as this script. For example:
Expand Down
2 changes: 1 addition & 1 deletion example/text/yelp_openai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
case the Azure CLI will be used to authenticate the requests, and the environment variable AZURE_OPENAI_API_SCOPE
needs to be set. See Azure OpenAI authentication documentation for more information:
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints#microsoft-entra-id-authentication
* AZURE_OPENAI_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_ENDPOINT: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* AZURE_OPENAI_API_VERSION: Azure OpenAI API version. You can get it from https://portal.azure.com/.
These environment variables can be set in a .env file in the same directory as this script. For example:
Expand Down
2 changes: 1 addition & 1 deletion pe/llm/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AzureOpenAILLM(LLM):
which case the Azure CLI will be used to authenticate the requests, and the environment variable
``AZURE_OPENAI_API_SCOPE`` needs to be set. See Azure OpenAI authentication documentation for more information:
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints#microsoft-entra-id-authentication
* ``AZURE_OPENAI_ENDPOINT``: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* ``AZURE_OPENAI_API_ENDPOINT``: Azure OpenAI endpoint. You can get it from https://portal.azure.com/.
* ``AZURE_OPENAI_API_VERSION``: Azure OpenAI API version. You can get it from https://portal.azure.com/."""

def __init__(self, dry_run=False, num_threads=1, **generation_args):
Expand Down

0 comments on commit 3cd4080

Please sign in to comment.