Skip to content

Commit

Permalink
Add examples of setting Azure parameters for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
d61h6k4 committed Jun 20, 2023
1 parent 235129c commit 051fa06
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions docs/docs/llms/llm-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,46 @@ to be configured:
To configure these parameters, follow these steps:

1. To configure the `openai.api_type` as an environment variable:
```shell
export OPENAI_API_TYPE="azure"
```

<Tabs groupId="os-dist-api-type" values={[{"label": "Linux/MacOS", "value": "unix"}, {"label": "Windows", "value": "windows"}]} defaultValue="unix">
<TabItem value="unix">

```shell
export OPENAI_API_TYPE="azure"
```

</TabItem>
<TabItem value="windows">

```shell
setx OPENAI_API_TYPE "azure"
```

This will apply to future cmd prompt window, so you will need to open a new one to use that variable

</TabItem>
</Tabs>

2. To configure the `openai.api_base` as an environment variable:
```shell
export OPENAI_API_BASE=<your-azure-openai-instance-url>
```

<Tabs groupId="os-dist-api-base" values={[{"label": "Linux/MacOS", "value": "unix"}, {"label": "Windows", "value": "windows"}]} defaultValue="unix">
<TabItem value="unix">

```shell
export OPENAI_API_BASE=<your-azure-openai-instance-url>
```

</TabItem>
<TabItem value="windows">

```shell
setx OPENAI_API_BASE <your-azure-openai-instance-url>
```

This will apply to future cmd prompt window, so you will need to open a new one to use that variable

</TabItem>
</Tabs>


## Other LLM providers
Expand Down

0 comments on commit 051fa06

Please sign in to comment.