You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,6 +100,8 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
99
100
100
101
This will create a folder under `.azure/` in your project to store the configuration for this deployment. You may have multiple azd environments if desired.
101
102
103
+
3. (Optional) If you would like to customize the deployment to [use existing Azure resources](docs/deploy_existing.md), you can set the values now.
104
+
102
105
3. Provision the resources and deploy the code:
103
106
104
107
```shell
@@ -128,24 +131,23 @@ Since the local app uses OpenAI models, you should first deploy it for the optim
128
131
1. Run these commands to install the web app as a local package (named `fastapi_app`), set up the local database, and seed it with test data:
If you already have existing Azure resources, or if you want to specify the exact name of new Azure Resource, you can do so by setting `azd` environment values.
4
+
You should set these values before running `azd up`. Once you've set them, return to the [deployment steps](../README.md#deployment).
5
+
6
+
### Openai.com OpenAI account
7
+
8
+
1. Run `azd env set DEPLOY_AZURE_OPENAI false`
9
+
1. Run `azd env set OPENAI_CHAT_HOST openaicom`
10
+
2. Run `azd env set OPENAI_EMBED_HOST openaicom`
11
+
3. Run `azd env set OPENAICOM_KEY {Your OpenAI API key}`
12
+
4. Run `azd up`
13
+
14
+
You can retrieve your OpenAI key by checking [your user page](https://platform.openai.com/account/api-keys).
15
+
Learn more about creating an OpenAI free trial at [this link](https://openai.com/pricing).
16
+
Do *not* check your key into source control.
17
+
18
+
When you run `azd up` after and are prompted to select a value for `openAiResourceGroupLocation`, you can select any location as it will not be used.
0 commit comments