From 24d98c6b1e39ab7c6cbcf782451401c66a54100b Mon Sep 17 00:00:00 2001
From: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date: Fri, 17 May 2024 14:27:35 -0400
Subject: [PATCH] cleanup-env
---
docs/docs/administration/global-env.mdx | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/docs/docs/administration/global-env.mdx b/docs/docs/administration/global-env.mdx
index ea17b45c9..27cafa0c1 100644
--- a/docs/docs/administration/global-env.mdx
+++ b/docs/docs/administration/global-env.mdx
@@ -13,19 +13,23 @@ For more information on the starter flow, see [Basic prompting](../starter-proje
1. From the Langflow dashboard, click **New Project**.
2. Select **Basic Prompting**.
+
The **Basic Prompting** flow is created.
-3. To create an environment variable for the **OpenAI** component, in the **OpenAI API Key** field, click the **Globe** button, and then click **Add New Variable**.
+
+3. To create an environment variable for the **OpenAI** component:
+ 1. In the **OpenAI API Key** field, click the **Globe** button, and then click **Add New Variable**.
+ 2. In the **Variable Name** field, enter `openai_api_key`.
+ 3. In the **Value** field, paste your OpenAI API Key (`sk-...`).
+ 4. For the variable **Type**, select **Credential**.
+ 5. In the **Apply to Fields** field, select **OpenAI API Key** to apply this variable to all fields named **OpenAI API Key**.
+ 6. Click **Save Variable**.
+
+You now have a `openai_api_key` global environment variable for your Langflow project.
You can also create global variables in **Settings** > **Variables and Secrets**.
- 1. In the **Variable Name** field, enter `openai_api_key`.
- 2. In the **Value** field, paste your OpenAI API Key (`sk-...`).
- 3. For the variable **Type**, select **Credential**.
- 4. In the **Apply to Fields** field, select **OpenAI API Key** to apply this variable to all fields named **OpenAI API Key**.
- 5. Click **Save Variable**.
-
-You now have a `openai_api_key` global environment variable for your Langflow project.
-
4. To view and manage your project's global environment variables, visit **Settings** > **Variables and Secrets**.
For more on variables in HuggingFace Spaces, see [Managing Secrets](https://huggingface.co/docs/hub/spaces-overview#managing-secrets).