diff --git a/404.html b/404.html index 17fed6f5d2..151ac5f401 100644 --- a/404.html +++ b/404.html @@ -25,7 +25,7 @@ - +
diff --git a/agent-tutorial.html b/agent-tutorial.html index 8b45cc7616..00f78453f6 100644 --- a/agent-tutorial.html +++ b/agent-tutorial.html @@ -25,7 +25,7 @@ - + diff --git a/agents-tools.html b/agents-tools.html index 3867aa2720..a0d78550ec 100644 --- a/agents-tools.html +++ b/agents-tools.html @@ -25,7 +25,7 @@ - + diff --git a/agents.html b/agents.html index ea0aee94ee..5988ab76d9 100644 --- a/agents.html +++ b/agents.html @@ -25,7 +25,7 @@ - + diff --git a/api-build.html b/api-build.html index 2af3b8efda..76aa09ec07 100644 --- a/api-build.html +++ b/api-build.html @@ -25,7 +25,7 @@ - + diff --git a/api-files.html b/api-files.html index 4dd09f3b8d..1872fd4522 100644 --- a/api-files.html +++ b/api-files.html @@ -25,7 +25,7 @@ - + diff --git a/api-flows-run.html b/api-flows-run.html index 0503f6e852..2aef77a31a 100644 --- a/api-flows-run.html +++ b/api-flows-run.html @@ -25,7 +25,7 @@ - + diff --git a/api-flows.html b/api-flows.html index 0e3a83d856..793b3e59e1 100644 --- a/api-flows.html +++ b/api-flows.html @@ -25,7 +25,7 @@ - + diff --git a/api-keys-and-authentication.html b/api-keys-and-authentication.html index cd6838b930..32f4faac1d 100644 --- a/api-keys-and-authentication.html +++ b/api-keys-and-authentication.html @@ -25,7 +25,7 @@ - + diff --git a/api-logs.html b/api-logs.html index d203e060a9..bc87771bba 100644 --- a/api-logs.html +++ b/api-logs.html @@ -25,7 +25,7 @@ - + diff --git a/api-monitor.html b/api-monitor.html index 09df435170..ae6cea7db3 100644 --- a/api-monitor.html +++ b/api-monitor.html @@ -25,7 +25,7 @@ - + diff --git a/api-openai-responses.html b/api-openai-responses.html index a6080cc71d..1edf0770c8 100644 --- a/api-openai-responses.html +++ b/api-openai-responses.html @@ -25,7 +25,7 @@ - + diff --git a/api-projects.html b/api-projects.html index bee9334ae6..07bbd1ff0b 100644 --- a/api-projects.html +++ b/api-projects.html @@ -25,7 +25,7 @@ - + diff --git a/api-reference-api-examples.html b/api-reference-api-examples.html index 06fed497f8..68f3d57551 100644 --- a/api-reference-api-examples.html +++ b/api-reference-api-examples.html @@ -25,7 +25,7 @@ - + diff --git a/api-request.html b/api-request.html index d3065b5ee3..ccd42b33be 100644 --- a/api-request.html +++ b/api-request.html @@ -25,7 +25,7 @@ - + diff --git a/api-users.html b/api-users.html index c766108840..bf586e66fa 100644 --- a/api-users.html +++ b/api-users.html @@ -25,7 +25,7 @@ - + diff --git a/api.html b/api.html index 178ee52fd9..1af063af64 100644 --- a/api.html +++ b/api.html @@ -25,7 +25,7 @@ - + diff --git a/api/openapi.json.html b/api/openapi.json.html index 6fe2f42b43..cee28518f4 100644 --- a/api/openapi.json.html +++ b/api/openapi.json.html @@ -25,7 +25,7 @@ - + diff --git a/api/workflow.html b/api/workflow.html index 75df056913..80ee1ab89d 100644 --- a/api/workflow.html +++ b/api/workflow.html @@ -25,7 +25,7 @@ - + diff --git a/assets/js/db8c087e.5e412f6d.js b/assets/js/db8c087e.5e412f6d.js deleted file mode 100644 index dfcce4b1bc..0000000000 --- a/assets/js/db8c087e.5e412f6d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunklangflow_docs=globalThis.webpackChunklangflow_docs||[]).push([[30],{11470:(e,n,o)=>{o.d(n,{A:()=>j});var t=o(96540),s=o(18215),r=o(17559),l=o(23104),a=o(56347),i=o(205),c=o(57485),d=o(31682),u=o(70679);function p(e){return t.Children.toArray(e).filter(e=>"\n"!==e).map(e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: BadCopy the following API key information:
Langflow previously used LANGFUSE_HOST as the variable for the Langfuse base URL.
+This is still supported for backward compatibility, but LANGFUSE_BASE_URL is now the preferred environment variable and will be used if both values are set.
Set your Langfuse project credentials as environment variables in the same environment where you run Langflow.
-In the following examples, replace SECRET_KEY, PUBLIC_KEY, and HOST_URL with your API key details from Langfuse.
These commands set the environment variables in a Linux or macOS terminal session:
_10export LANGFUSE_SECRET_KEY=SECRET_KEY_10export LANGFUSE_PUBLIC_KEY=PUBLIC_KEY_10export LANGFUSE_HOST=HOST_URL
These commands set the environment variables in a Windows command prompt session:
_10set LANGFUSE_SECRET_KEY=SECRET_KEY_10set LANGFUSE_PUBLIC_KEY=PUBLIC_KEY_10set LANGFUSE_HOST=HOST_URL
Set your Langfuse project credentials as environment variables.
+In the following examples, replace SECRET_KEY, PUBLIC_KEY, and LANGFUSE_BASE_URL with your API key details from Langfuse.
+Add the following entries to your .env file:
_10LANGFUSE_SECRET_KEY=sk-..._10LANGFUSE_PUBLIC_KEY=pk-..._10LANGFUSE_BASE_URL=https://us.cloud.langfuse.com
Start Langflow in the same environment where you set the Langfuse environment variables:
-
_10uv run langflow run
Start Langflow with the configuration in the .env file:
_10uv run langflow run --env-file .env
Run a flow.
@@ -105,15 +105,18 @@Copy the following API key information:
Langflow previously used LANGFUSE_HOST as the variable for the Langfuse base URL.
+LANGFUSE_HOST is still supported for backward compatibility, but LANGFUSE_BASE_URL is the preferred environment variable.
+If both values are set, then LANGFLOW_BASE_URL is used.
Add your Langflow credentials to your Langflow docker-compose.yml file in the environment section.
The following example is based on the example docker-compose.yml.
_32services:_32 langflow:_32 image: langflowai/langflow:latest # or another version tag on https://hub.docker.com/r/langflowai/langflow_32 pull_policy: always # set to 'always' when using 'latest' image_32 ports:_32 - "7860:7860"_32 depends_on:_32 - postgres_32 environment:_32 - LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow_32 # This variable defines where the logs, file storage, monitor data and secret keys are stored._32 - LANGFLOW_CONFIG_DIR=app/langflow_32 - LANGFUSE_SECRET_KEY=sk-..._32 - LANGFUSE_PUBLIC_KEY=pk-..._32 - LANGFUSE_HOST=https://us.cloud.langfuse.com_32 volumes:_32 - langflow-data:/app/langflow_32_32 postgres:_32 image: postgres:16_32 environment:_32 POSTGRES_USER: langflow_32 POSTGRES_PASSWORD: langflow_32 POSTGRES_DB: langflow_32 ports:_32 - "5432:5432"_32 volumes:_32 - langflow-postgres:/var/lib/postgresql/data_32_32volumes:_32 langflow-postgres:_32 langflow-data:
_32services:_32 langflow:_32 image: langflowai/langflow:latest # or another version tag on https://hub.docker.com/r/langflowai/langflow_32 pull_policy: always # set to 'always' when using 'latest' image_32 ports:_32 - "7860:7860"_32 depends_on:_32 - postgres_32 environment:_32 - LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow_32 # This variable defines where the logs, file storage, monitor data and secret keys are stored._32 - LANGFLOW_CONFIG_DIR=app/langflow_32 - LANGFUSE_SECRET_KEY=sk-..._32 - LANGFUSE_PUBLIC_KEY=pk-..._32 - LANGFUSE_BASE_URL=https://us.cloud.langfuse.com_32 volumes:_32 - langflow-data:/app/langflow_32_32 postgres:_32 image: postgres:16_32 environment:_32 POSTGRES_USER: langflow_32 POSTGRES_PASSWORD: langflow_32 POSTGRES_DB: langflow_32 ports:_32 - "5432:5432"_32 volumes:_32 - langflow-postgres:/var/lib/postgresql/data_32_32volumes:_32 langflow-postgres:_32 langflow-data:
Start the Docker container:
@@ -121,8 +124,8 @@To confirm Langfuse is connected to your Langflow container, run the following command:
-
_10docker compose exec langflow python -c "import requests, os; addr = os.environ.get('LANGFUSE_HOST'); print(addr); res = requests.get(addr, timeout=5); print(res.status_code)"
If there is an error, make sure you have set the LANGFUSE_HOST environment variable in your terminal session.
_10docker compose exec langflow python -c "import requests, os; addr = os.environ.get('LANGFUSE_BASE_URL'); print(addr); res = requests.get(addr, timeout=5); print(res.status_code)"
If there is an error, make sure you have set the LANGFUSE_BASE_URL environment variable in your docker-compose.yml file.
Output similar to the following indicates success:
_10https://us.cloud.langfuse.com_10200