This commit is contained in:
Mendon Kissling 2024-05-17 14:08:45 -04:00
commit 2a13e24e93

View file

@ -9,12 +9,12 @@ Langflow 1.0 alpha includes the option to add **Global Environment Variables** f
In this example, you'll add the `openai_api_key` credential as a global environment variable to the **Basic Prompting** starter project.
For more information on the starter flow, see [Basic prompting ](../starter-projects/basic-prompting.mdx).
For more information on the starter flow, see [Basic prompting](../starter-projects/basic-prompting.mdx).
1. From the Langflow dashboard, click **New Project**.
2. Select **Basic Prompting**.
3. The **Basic Prompting** flow is created.
4. 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**.
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**.
<Admonition type="tip">
You can also create global variables in **Settings** > **Variables and Secrets**.
@ -37,7 +37,7 @@ For more information on the starter flow, see [Basic prompting ](../starter-proj
You now have a `openai_api_key` global environment variable for your Langflow project.
5. To view and manage your project's global environment variables, visit **Settings** > **Variables and Secrets**.
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).