From b550f57912b77b919b920fa03e18511db7ebedc8 Mon Sep 17 00:00:00 2001 From: Chetanya Rastogi Date: Tue, 17 Jan 2023 22:30:29 -0800 Subject: [PATCH] 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. --- docs/modules/llms/integrations/azure_openai_example.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/llms/integrations/azure_openai_example.ipynb b/docs/modules/llms/integrations/azure_openai_example.ipynb index 8703454302..76dd997d2f 100644 --- a/docs/modules/llms/integrations/azure_openai_example.ipynb +++ b/docs/modules/llms/integrations/azure_openai_example.ipynb @@ -20,7 +20,7 @@ "# The API version you want to use: set this to `2022-12-01` for the released version.\n", "export OPENAI_API_VERSION=2022-12-01\n", "# The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource.\n", - "export OPENAI_API_BASE_URL=https://your-resource-name.openai.azure.com\n", + "export OPENAI_API_BASE=https://your-resource-name.openai.azure.com\n", "# The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource.\n", "export OPENAI_API_KEY=\n", "```\n",