Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy_features.md #1885

Merged
merged 9 commits into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
pamelafox marked this conversation as resolved.
Show resolved Hide resolved

```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:
pamelafox marked this conversation as resolved.
Show resolved Hide resolved

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

For GPT-4o:

```bash
pamelafox marked this conversation as resolved.
Show resolved Hide resolved
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4o
```
YIN-Renlong marked this conversation as resolved.
Show resolved Hide resolved

For GPT-4o mini:

```bash
pamelafox marked this conversation as resolved.
Show resolved Hide resolved
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:
pamelafox marked this conversation as resolved.
Show resolved Hide resolved

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

For GPT-4o:
pamelafox marked this conversation as resolved.
Show resolved Hide resolved

```bash
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION 2024-05-13
```
YIN-Renlong marked this conversation as resolved.
Show resolved Hide resolved

For GPT-4o mini:
pamelafox marked this conversation as resolved.
Show resolved Hide resolved

```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
Loading