Skip to content

Commit

Permalink
Update deploy_features.md (Azure-Samples#1885)
Browse files Browse the repository at this point in the history
* Update deploy_features.md

Added detailed instructions for setting up GPT-4 and GPT-4o deployments. Included specific commands for deployment names, model versions, and deployment capacities. Clarified steps for setting deployment capacity with a note on default values for GPT-4o.

* Update deploy_features.md

Hi @pamelafox, I have made the suggested changes, including adding instructions for the -mini model. Please review the updated file. Thanks!

* Apply suggestions from code review

* Update docs/deploy_features.md

* Update docs/deploy_features.md

* Update docs/deploy_features.md

* Update docs/deploy_features.md

* Update docs/deploy_features.md

* Update deploy_features.md

This update corrects various markdown formatting issues to comply with markdownlint standards.

---------

Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
  • Loading branch information
YIN-Renlong and pamelafox authored Aug 6, 2024
1 parent 1a32cd4 commit 27816c1
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions docs/deploy_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,44 @@ You should typically enable these features before running `azd up`. Once you've

## Using GPT-4

We generally find that most developers are able to get high quality answers using GPT 3.5. However, if you want to try GPT-4, you can do so by following these steps:
(Instructions for **GPT-4**, **GPT-4o**, and **GPT-4o mini** models are also included here.)

We generally find that most developers are able to get high-quality answers using GPT-3.5. However, if you want to try GPT-4, GPT-4o, or GPT-4o mini, you can do so by following these steps:

Execute the following commands inside your terminal:

1. To set the name of the deployment, run this command with a new unique name.
1. To set the name of the deployment, run this command with a unique name in your Azure OpenAI account. You can use any deployment name, as long as it's unique in your Azure OpenAI account.

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT <your-deployment-name>
```

For example:

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT chat4
```

1. To set the GPT model name to a **gpt-4** version from the [available models](https://learn.microsoft.com/azure/ai-services/openai/concepts/models), run this command with the appropriate gpt model name.
1. To set the GPT model name to a **gpt-4**, **gpt-4o**, or **gpt-4o mini** version from the [available models](https://learn.microsoft.com/azure/ai-services/openai/concepts/models), run this command with the appropriate GPT model name.

For GPT-4:

```bash
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4
```

For GPT-4o:

```bash
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4o
```

For GPT-4o mini:

```bash
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4o-mini
```

1. To set the Azure OpenAI deployment capacity, run this command with the desired capacity.

```bash
Expand All @@ -43,10 +65,24 @@ Execute the following commands inside your terminal:

1. To set the Azure OpenAI deployment version from the [available versions](https://learn.microsoft.com/azure/ai-services/openai/concepts/models), run this command with the appropriate version.

For GPT-4:

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION turbo-2024-04-09
```

For GPT-4o:

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION 2024-05-13
```

For GPT-4o mini:

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION 2024-07-18
```

1. To update the deployment with the new parameters, run this command.

```bash
Expand Down

0 comments on commit 27816c1

Please sign in to comment.