Skip to content

Commit b550f57

Browse files
authored
Fix the env variable for OpenAI Base Url (#639)
For using Azure OpenAI API, we need to set multiple env vars. But as can be seen in openai package [here](https://github.com/openai/openai-python/blob/48b69293a3dff649165c1d0e0f9d77d1b52436c5/openai/__init__.py#L35), the env var for setting base url is named `OPENAI_API_BASE` and not `OPENAI_API_BASE_URL`. This PR fixes that part in the documentation.
1 parent 4d4cff0 commit b550f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modules/llms/integrations/azure_openai_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"# The API version you want to use: set this to `2022-12-01` for the released version.\n",
2121
"export OPENAI_API_VERSION=2022-12-01\n",
2222
"# The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource.\n",
23-
"export OPENAI_API_BASE_URL=https://your-resource-name.openai.azure.com\n",
23+
"export OPENAI_API_BASE=https://your-resource-name.openai.azure.com\n",
2424
"# The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource.\n",
2525
"export OPENAI_API_KEY=<your Azure OpenAI API key>\n",
2626
"```\n",

0 commit comments

Comments
 (0)