forked from Archives/langchain
Harrison/update azure nb (#5665)
Co-authored-by: NEWTON MALLICK <38786893+N-E-W-T-O-N@users.noreply.github.com>
This commit is contained in:
parent
4e71a1702b
commit
9921f8cc3a
@ -17,8 +17,8 @@
|
||||
"```bash\n",
|
||||
"# Set this to `azure`\n",
|
||||
"export OPENAI_API_TYPE=azure\n",
|
||||
"# 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 API version you want to use: set this to `2023-03-15-preview` for the released version.\n",
|
||||
"export OPENAI_API_VERSION=2023-03-15-preview\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=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",
|
||||
@ -70,7 +70,7 @@
|
||||
"source": [
|
||||
"import os\n",
|
||||
"os.environ[\"OPENAI_API_TYPE\"] = \"azure\"\n",
|
||||
"os.environ[\"OPENAI_API_VERSION\"] = \"2022-12-01\"\n",
|
||||
"os.environ[\"OPENAI_API_VERSION\"] = \"2023-03-15-preview\"\n",
|
||||
"os.environ[\"OPENAI_API_BASE\"] = \"...\"\n",
|
||||
"os.environ[\"OPENAI_API_KEY\"] = \"...\""
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user