mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-16 18:40:40 +08:00
docs: Update Azure setup instructions in Usage.md
This commit is contained in:
5
Usage.md
5
Usage.md
@ -233,7 +233,7 @@ To use a different model than the default (GPT-4), you need to edit [configurati
|
|||||||
For models and environments not from OPENAI, you might need to provide additional keys and other parameters. See below for instructions.
|
For models and environments not from OPENAI, you might need to provide additional keys and other parameters. See below for instructions.
|
||||||
|
|
||||||
#### Azure
|
#### Azure
|
||||||
To use Azure, set in your .secrets.toml:
|
To use Azure, set in your `.secrets.toml` (working from CLI), or in the GitHub `Settings > Secrets and variables` (working from GitHub App or GitHub Action):
|
||||||
```
|
```
|
||||||
api_key = "" # your azure api key
|
api_key = "" # your azure api key
|
||||||
api_type = "azure"
|
api_type = "azure"
|
||||||
@ -242,12 +242,11 @@ api_base = "" # The base URL for your Azure OpenAI resource. e.g. "https://<you
|
|||||||
openai.deployment_id = "" # The deployment name you chose when you deployed the engine
|
openai.deployment_id = "" # The deployment name you chose when you deployed the engine
|
||||||
```
|
```
|
||||||
|
|
||||||
and
|
and set in your configuration file:
|
||||||
```
|
```
|
||||||
[config]
|
[config]
|
||||||
model="" # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)
|
model="" # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)
|
||||||
```
|
```
|
||||||
in the configuration.toml
|
|
||||||
|
|
||||||
#### Huggingface
|
#### Huggingface
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user